ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Re[2]: odd behavior on <target ... unless="someproperty">
Date Mon, 09 Sep 2002 18:50:01 GMT
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:hoju@visi.com] 
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message