Ant-contrib.unkrig.de: Difference between revisions

From unkrig.de
Jump to navigation Jump to search
No edit summary
 
(43 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Abstract ==
<meta name="keywords" content="apache, ant, antlib, library, extension, tasks, types, filters"></meta>
Some contributions to APACHE ANT, e.g. the <code><swingDialog></code> task which significantly enhances ANT's <code><input></code> task.
<meta name="description" content="A library for APACHE ANT that contributes many useful, resource collections, and other types"></meta>
This project was renamed to "[[Antology]]" to get rid of the constant confusion with the (related, but otherwise independent) "[http://ant-contrib.sourceforge.net/ ant-contrib]" project on SOURCEFORGE.


== Tasks ==
As a consequence, in all your ANT build scripts, you have to change


;[['follow' task|<code><follow></code>]]
  <taskdef resource="de/unkrig/antcontrib/ant.xml" classpath="path/to/de.unkrig.ant-contrib.jar" />
:Waits until a file grows.


;[['jsonProperty' task|<code><jsonProperty></code>]]
to
:Parses a JSON document into a set of properties, in analogy with [http://ant.apache.org/manual/Tasks/xmlproperty.html the standard ANT <code><xmlproperty></code> task].


;[['nslookup' task|<code><nslookup></code>]]
  <taskdef resource="de/unkrig/antology/ant.xml" classpath="path/to/antology-x.y.z-jar-with-dependencies.jar" />
:Resolves a host name or IP address.


;[['setAuthenticator' task|<code><setAuthenticator></code>]]
. That's all, folks!
:Configures the authentication for all following [http://docs.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.html <code>java.net.URLConnection</code>]s, including the [[#<urlConnection>|<code><urlConnection></code>]] task.
 
;[['setCookieHandler' task|<code><setCookieHandler></code>]]
:Enables or disables cookie handling for Java's [http://docs.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.html <code>java.net.HttpURLConnection</code>], including the [[#<urlConnection>|<code><urlConnection></code>]] task.
 
;[['swingDialog' task|<code><swingDialog></code>]]
:Pops up a highly configurable dialog and invites the user to fill in form fields.
 
;[['urlConnection' task|<code><urlConnection></code>]]
:Connects to a resource and writes data to it and/or reads data from it.
 
== Resource Collections ==
 
;[['resourceCollectionDelta' resource collection|<code><resourceCollectionDelta></code>]]
:Selects the subset of resources that was added, deleted or modified since the last check.
 
== Filter Readers ==
 
;[['progress' filter reader|<code><progress></code>]]
:Prints dots (".") to STDERR as data is read through it. This implements a kind of 'progress monitoring' for slow tasks that read some data.
 
== 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]]".

Latest revision as of 09:58, 17 November 2016

<meta name="keywords" content="apache, ant, antlib, library, extension, tasks, types, filters"></meta> <meta name="description" content="A library for APACHE ANT that contributes many useful, resource collections, and other types"></meta> This project was renamed to "Antology" to get rid of the constant confusion with the (related, but otherwise independent) "ant-contrib" project on SOURCEFORGE.

As a consequence, in all your ANT build scripts, you have to change

 <taskdef resource="de/unkrig/antcontrib/ant.xml" classpath="path/to/de.unkrig.ant-contrib.jar" />

to

 <taskdef resource="de/unkrig/antology/ant.xml" classpath="path/to/antology-x.y.z-jar-with-dependencies.jar" />

. That's all, folks!