Ant-contrib.unkrig.de: Difference between revisions

From unkrig.de
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 9: Line 9:


[[File:swing-dialog.png]]
[[File:swing-dialog.png]]
==== '''Attributes''' ====
'''title="FTP upload of update site"'''
: The text to be displayed in the tiutle bar of the dialog.


==== '''Subelements''' ====
==== '''Subelements''' ====
<'''globaloption''' option="-n"/>
<'''label''' text="User ID:"/>
:One of -Q, -q, -r, -n, -t, -l (For descriptions see the "Custom CVS Commands" dialog or "cvs --help-options").
: 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
    classpath="lib/de.unkrig.ant-contrib.jar"
    file="de/unkrig/antcontrib/ant.properties"
/>
 
, or, if you put the JAR file on ANT's default classpath, just


<'''localoption''' option="-r1.5"/><br/>
<taskdef file="de/unkrig/antcontrib/ant.properties"/>
<'''localoption''' option="-m" argument="My Message"/>
:Command-dependent; for descriptions see the "Custom CVS Commands" dialog or "cvs -H ''command''".
<'''fileset'''>...<br/>
<'''dirset'''>...
:See ANT documentation.

Revision as of 16:25, 30 May 2013

Abstract

Some contributions to APACHE ANT, e.g. the 'de.unkrig.ant-contrib.swing-dialog' task which significantly enhances ANT's <input> task.

Tasks

de.unkrig.ant-contrib.swing-dialog

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

Swing-dialog.png

Attributes

title="FTP upload of update site"

The text to be displayed in the tiutle bar of the dialog.

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
    classpath="lib/de.unkrig.ant-contrib.jar"
    file="de/unkrig/antcontrib/ant.properties"
/>

, or, if you put the JAR file on ANT's default classpath, just

<taskdef file="de/unkrig/antcontrib/ant.properties"/>