ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <dmctav...@SANDVINE.com>
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?

ie:

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


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.


thx,
d.

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