Ant-contrib.unkrig.de: Difference between revisions

From unkrig.de
Jump to navigation Jump to search
No edit summary
 
(88 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 'de.unkrig.ant-contrib.swing-dialog' task which significantly enhances ANT's <input> 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


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


Pops up a highly configurable dialog and invites the user to fill in form fields:
to


[[File:swing-dialog.png]]
  <taskdef resource="de/unkrig/antology/ant.xml" classpath="path/to/antology-x.y.z-jar-with-dependencies.jar" />


==== '''Attributes''' ====
. That's all, folks!
;title="FTP upload of update site": The text to be displayed in the title bar of the dialog.
;optionType="...": DEFAULT (an 'OK' button), YES_NO, YES_NO_CANCEL, OK_CANCEL (the default)
;messageType="...": ERROR, INFORMATION, WARNING, QUESTION, PLAIN (the default)
;property="...": The named property will be set to YES, NO, CANCEL, OK or CLOSED when the task completes. If this attribute is not set, then the build will only continue iff the YES or OK button was pressed.
 
==== '''Subelements''' ====
<'''label''' text="User ID:"/>
: Displays the given text.
 
<'''text''' property="ftp.userid" defaultvalue="www.unkrig.de"/>
: A one-line text input field with an (optional) default value. On return, the named property is set to the text of the field. Iff 'secure="true"' is given, then characters entered into the field are not echoed.
 
<'''checkbox''' text="Use passive FTP" property="ftp.passive" defaultvalue="true"/>
: A checkbox with a label. On return, the named property is set to 'true' iff the box is checked. Iff 'defaultvalue="true"' is given, then the checkbox is pre-selected.
 
== 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.properties" classpath="lib/de.unkrig.ant-contrib.jar"/>
 
, or, if you put the JAR file on ANT's default classpath, just
 
<taskdef resource="de/unkrig/antcontrib/ant.properties"/>
 
== 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!