ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Ant question
Date Wed, 19 Jul 2000 06:21:03 GMT
>>>>> "VR" == Vijay Raghavan <vijay@netscape.com> 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
attributes.

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

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

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

Stefan



Mime
View raw message