ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: global properties
Date Thu, 20 Sep 2001 11:54:37 GMT
Craig Longman wrote:

Craig,

Why not just do without the antcall's altogether - something like this, 
perhaps

<project name="test" default="default2">

<target name="default1">
         <property name="use.target1" value="true"/>
         <property name="use.target2" value="true"/>
</target>

<target name="default2" depends="default1, target1, target2">
         <echo message="${prop2}"/>
</target>

<target name="target1" depends="check" if="use.target1">
         <property name="prop1" value="test1a"/>
         <property name="prop2" value="test2a"/>
</target>

<target name="target2" depends="check" if="use.target2">
         <property name="prop1" value="test1b"/>
         <property name="prop2" value="test2b"/>
</target>

<target name="check" if="prop1">
         <fail message="prop1 already set"/>
</target>

</project>

Conor


Mime
View raw message