Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
AntForm question

AntForm question

2006-11-29       - By Hans Schwaebli
Reply:     1     2     3     4     5     6     7     8     9     10  

When I run this, the form is shown, although all properties are already set. If
all properties are set, why does it show the form? More important? How can I
teach Antform not to show the form if all properties are set?
 
         <property name="recipient" value="a"/>
       <property name="subject" value="b"/>
       <property name="body" value="c"/>
       <property name="send" value="d"/>
       <antform title="Send Mail" lookAndFeel="com.sun.java.swing.plaf.windows
.WindowsLookAndFeel"
     save="properties.txt"
     image="doc/images/testlogo.jpg">
     <label>To send a mail, use the following form. Pick a recipient, type a
subject and a body...the script will do the rest.</label>
     <selectionProperty unless="recipient" label="Recipient: " property=
"recipient" values="address1@(protected); address2@(protected); address4
@(protected)" separator=";"/>
     <textProperty unless="subject" label="Subject : " property="subject" />
     <multilineTextProperty unless="body" label="Message body: " property=
"body"/>
     <booleanProperty unless="send" label="Send immediately: " property="send"
/>
       </antform>

 
---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.