Now that I use ant-contrib's <if>, that's how I'd do it:
<target name="input"
unless="subprojectskip">
<if>
<not><isset property="subproject"/></not>
<then>
<input addproperty="subproject" ... />
</then>
</if>
<if>
<not><isset property="subtarget"/></not>
<then>
<input addproperty="subtarget" ... />
</then>
</if>
</target>
<target name="check.subproject.control"
depends="input">
...
</target>
Refer to the mailing lists for details on getting the <if> task. -DD
-----Original Message-----
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 1:34 PM
To: Ant Users List
Subject: Re[2]: odd behavior on <target ... unless="someproperty">
Hello Dominique,
Ok, then how can I wrap the <input ...> in a conditional to make it
prompt for input if, and only if, the property "subprojectskip" does
*not* exist?
Jake
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>