ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Wood <kw...@i2.com>
Subject Thanks!! Re: A question about "available" and doing conditionals in a build xml file.
Date Wed, 17 May 2000 18:05:35 GMT
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>
>

Mime
View raw message