ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Ant question
Date Wed, 19 Jul 2000 06:21:03 GMT
>>>>> "VR" == Vijay Raghavan <> writes:

 VR> For example, if I want to invoke one task if a property is set
 VR> but another one if it is not, is that possible?

Not on the task but on the target level, use the if and unless

<target name="ifset" if="propertyname">
  <dosomething />

<target name="unlessset" unless="propertyname">
  <dosomethingelse />

<target name="ifelse" depends="ifset,unlessset" />


View raw message