ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
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
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"
    <target name="copy" depends="check" if="from.dir.exists">
        <copy todir="/temp">
             <fileset dir="${from.dir}" includes="**/*"/>
    <target name="test" depends="copy"/>


Antoine Levy-Lambert

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message