ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <>
Subject copy fileset ignore non-existent directory
Date Thu, 02 Jan 2003 20:51:17 GMT
Is there anyway to provide a fileset to the copy command and ignore if the
specified source directory does NOT exist?


<copy todir="temp" failonerror="false">
    <fileset dir="nonexistent-dir" includes="some.files"/>

The reason I need to do this is that sometimes when I call the target, the
directory does exist, and I want it to copy as normal, but if the directory
DOESN'T exist, I want it to ignore this.


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

View raw message