ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Trunikov <...@quasarlabs.com>
Subject Re: strange behaviour
Date Mon, 24 Jun 2002 09:18:15 GMT
> It is a rather common pattern to set properties in the targets of the
> depends list, something like
>
> <target name="check">
>   <availible property="library.available" ... />
> </target>
>
> <target name="do-it-with-lib" depends="check" if="library.available">
>   <task that requires library />
> </target>
>
> <target name="do-it-without-lib" depends="check" unless="library.available">
>   <task that does the same without library" />
> </target>
>
> <target name="do-it"
>         depends="do-it-with-library,do-it-without-library" />
>
> See also:
>
> <http://jakarta.apache.org/ant/faq.html#stop-dependency>
>

^^^^^^^^^^^^^
Thank you.


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


Mime
View raw message