You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rousseau, John" <JR...@silverstream.com> on 2000/12/12 20:14:57 UTC
Compile time vs. run time evaluation
Is there any way to have the "depends" attribute of the target be
evaluated at run time instead of compile time?
Even when I seperate the subtarget into another file, like...
build.xml:
<target name="init">
<param name="targets" value="targ1,targ2" />
</target>
<target name="foo" depends="init">
<ant antfile="targets.xml" target="bar" />
</target>
targets.xml
<target name="bar" depends="${targets} />
... it still complains about ${targets} not being defined. Is there
any way to do this with the current Ant?
Thanks!
-John
----------------------------------------------------------------
John Rousseau jrr@silverstream.com
SilverStream Software Phone: +1 978 262 3564
2 Federal Street Fax: +1 978 262 3499
Billerica, MA 01821 http://www.silverstream.com
----------------------------------------------------------------
Re: Compile time vs. run time evaluation
Posted by Stefan Bodewig <bo...@apache.org>.
John Rousseau <JR...@silverstream.com> wrote:
> Is there any way to have the "depends" attribute of the target be
> evaluated at run time instead of compile time?
No ${} expansion in any attribute of <project> or <target> at the
moment, sorry. I'm going to propose top change this for Ant 1.3 - as
it pops up quite often.
Stefan