You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ken Wood <kw...@i2.com> on 2000/05/17 20:05:35 UTC
Thanks!! Re: A question about "available" and doing conditionals in a
build xml file.
Yes! Thanks! I did:
<copydir src="common/bin" dest="ishield/scp_df_common/classes_bin/bin"
>
<include name="userreg.*"/>
<exclude name="*.bat" unless="os.is.windows" />
<exclude name="*.sh" if="os.is.windows" />
</copydir>
Stefan Bodewig wrote:
> copydir is derived from MatchingTask, maybe you can use something like
>
> <available file="C:\AUTOEXEC.BAT" property="os.is.windows" />
>
> <copy src="src/bin" dest="dest/bin">
> <exclude name="**/*.bat" unless="os.is.windows" />
> <exclude name="**/*.sh" if="os.is.windows" />
> </copy>
>