ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: AntForm question
Date Wed, 29 Nov 2006 11:23:50 GMT

i just had a quick look in the antform manual,
you're already using the unless attributes.

so no need for the extra condition

the script works as it should, showing only
the main screen but you're not able to
declare your own recipient,subject, body
as those properties are already set.

my env here = ant 1.6.5, jdk1.4.2_05,Win2k
Regards, Gilbert

-----Original Message-----
From: Rebhan, Gilbert [] 
Sent: Wednesday, November 29, 2006 11:53 AM
To: Ant Users List
Subject: RE: AntForm question


use a condition to check whether those props are already set =

<condition property="noAntForm">
            <isset property="foo"/>
            <isset property="bar"/>

and in the target where AntForm comes in use unless =

<target name="useAntForm" unless="noAntForm">


so the target useAntForm is only executed if those props are not
already set.

Regards, Gilbert

-----Original Message-----
From: Hans Schwaebli [] 
Sent: Wednesday, November 29, 2006 11:06 AM
To: Ant Users List
Subject: AntForm question

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"
      <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=";;" separator=";"/>
      <textProperty unless="subject" label="Subject : "
property="subject" />
      <multilineTextProperty unless="body" label="Message body: "
      <booleanProperty unless="send" label="Send immediately: "

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

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message