ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: copy fileset ignore non-existent directory
Date Thu, 02 Jan 2003 21:28:30 GMT
David, maybe you would like to use the task available before doing your
copy.
here is an example which works :

<project name="test" default="test">
    <property name="from.dir" value="/toto"/>
    <target name="check">
        <available file="${from.dir}" property="from.dir.exists"
type="dir"/>
    </target>
    <target name="copy" depends="check" if="from.dir.exists">
        <copy todir="/temp">
             <fileset dir="${from.dir}" includes="**/*"/>
        </copy>
    </target>
    <target name="test" depends="copy"/>
</project>

Yours

Antoine Levy-Lambert


--
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