Ant-contrib.unkrig.de
Jump to navigation
Jump to search
Abstract
Some contributions to APACHE ANT, e.g. the <swingDialog>
task which significantly enhances ANT's <input>
task.
Tasks
<follow>
- Waits until a file grows.
<jsonProperty>
- Parses a JSON document into a set of properties, in analogy with the standard ANT
<xmlproperty>
task.
<nslookup>
- Resolves a host name or IP address.
<setAuthenticator>
- Configures the authentication for all following
java.net.URLConnection
s.
<setCookieHandler>
- Enables or disables cookie handling for Java's
java.net.HttpURLConnection
, including the<urlConnection>
task.
<swingDialog>
- Pops up a highly configurable dialog and invites the user to fill in form fields.
<urlConnection>
- Connects to a resource and writes data to it and/or reads data from it.
Resource Collections
<resourceCollectionDelta>
Selects the subset of resources that was added, deleted or modified since the last check.
Attributes
stateFile="..."
- Where to store state information. If this file is deleted, then all resources appear as 'added'. The default is '$HOME/.resource-collection.delta.properties'.
added="true"
- Whether the files that were ADDED to the resource collection subelement since the last invocation should be returned.
deleted="true"
- Whether the files that were DELETED from the resource collection subelement since the last invocation should be returned.
modified="true"
- Whether the files in the resource collection subelement that were MODIFIED since the last invocation should be returned.
Subelements
- Resource collection (
<fileset>
, ...) - The resources to monitor.
Filter Readers
<progress>
Prints dots (".") to STDERR as data is read through it. This implements a kind of 'progress monitoring' for slow tasks that read some data.
Attributes
bytesPerTick="..."
- That many bytes must be processed before another dot is printed. The default is '1024'.
exponential="false"
- If true, then the initial dot printing frequency will degrade so that no more than 80 dots will ever be printed. The default is
true
.
Download and installation
The JAR file can be downloaded from http://ant-contrib.unkrig.de/download/.
To make the contributions available in your ANT scripts, write
<taskdef resource="de/unkrig/antcontrib/ant.xml" classpath="path/to/de.unkrig.ant-contrib.jar" />
, or, if you put the JAR file on ANT's default classpath, just
<taskdef resource="de/unkrig/antcontrib/ant.xml" />
Source code
The source code is available in the SUBVERSION repository. The repository URL is
https://svn.code.sf.net/p/loggifier/code
License
ANT-CONTRIB is published under the "New BSD License".