Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
task to 'cp -r --reply=no '

task to 'cp -r --reply=no '

2007-06-12       - By Gilbert Rebhan
Reply:     1     2     3     4     5     6     7     8     9     10  

Gilbert Rebhan wrote:

> Blank directorie are not copied, how to achieve that if wanted ?
> (manual says <cop<> task is set to ncludeEmptyDirs="true" ?

it's simply a question of the fileset include pattern
if used

includes="**/*"  =

     [echo] Files to copy =
     [copy] Copied 1 empty directory to 1 empty directory under J:\copyto

so if i want to include empty dirs i use the pattern
includes="**/*" and need to exclude all the stuff i don't need,
i.e. excludes="**/*.bak, *.log"

Regards, Gilbert

To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.