You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Peter Donald <pe...@apache.org> on 2002/05/24 08:33:49 UTC
[myrmidon] Depends as a task
Hi,
I finally got around to making it possible to evaluate dependencies inside a
target. So now all the following are equivelent
<target name="x" depends="a,b,c">
</target>
<target name="x" depends="a">
<depends target="b"/>
<depends target="c"/>
</target>
<target name="x">
<depends target="a"/>
<depends target="b"/>
<depends target="c"/>
</target>
The advantage of this is that it allows you to declare dependencies in between
other tasks like
<target name="x">
<log message="Before depends evaluated!"/>
<depends target="c"/>
<log message="After depends evaluated!"/>
</target>
--
Cheers,
Peter Donald
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>