ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: OS Attribute in Copy Task
Date Wed, 01 Aug 2001 15:19:54 GMT
On Wed, 1 Aug 2001, Robert Ford <Robert.Ford@247Media.com> wrote:

> --------------------------------------------------------
> <target name="dist">
>   <copy todir="dist/lib" os="Windows 2000">
>     <fileset dir="directoryA/lib" includes="*.dll">
>   </copy>
> 
>   <copy todir="dist/lib" os="SunOS">
>     <fileset dir="directoryA/lib" includes="*.so">
>   </copy>
> </target>
> --------------------------------------------------------

<property name="is.${os.name}" value="zaphod" />
<copy todir="dist/lib">
  <fileset dir="directoryA/lib">
    <include name="*.dll" if="is.Windows 2000" />
    <include name="*.so" if="is.SunOS" />
  </fileset>
</copy>

Stefan

Mime
View raw message