ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Is it possible to dynamically change depends value of target ?
Date Tue, 27 Apr 2004 03:52:44 GMT
At 06:40 PM 4/26/2004 -0700, you wrote:



>Hi
>I am wondering if anything like this is at all possible in ant
>
>
><target name="co-all"   depends="${checkoutModule}">
>                 <echo message="***All Modules Checked out!! in co all
>${checkoutModule}***"/>
>         </target>
>
>
>Intention is dynamically to determine the depends value to execute certain
>targets .

"depends" doesn't expand properties.  I bet if you had a target such as the 
following it would work...

<target name="${checkoutModule}"/>


However, that misses the point.  What you want is this...

<target name="co-all">
    <callToCustomCheckoutMacrodef module="${checkoutModule}"/>
</target>

You could also use Ant-contrib's <for> task which wraps macrodef to provide 
iteration without incurring <antcall>'s performance hit.


Jake


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message