ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
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:

>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
>         </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}"/>

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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message