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

2007-06-12 Thread Matt Benson
--- Gilbert Rebhan <[EMAIL PROTECTED]> wrote: > Gilbert Rebhan wrote: > > > Blank directorie are not copied, how to achieve > that if wanted ? > > (manual says task is set to > ncludeEmptyDirs="true" ? > > it's simply a question of the fileset include > pattern > if used > > includes="**/*"

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

2007-06-12 Thread Gilbert Rebhan
Gilbert Rebhan wrote: Blank directorie are not copied, how to achieve that if wanted ? (manual says task is set to ncludeEmptyDirs="true" ? it's simply a question of the fileset include pattern if used includes="**/*" = main: [echo] Files to copy = [copy] Copied 1 empty directory

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

2007-06-12 Thread Matt Benson
--- Gilbert Rebhan <[EMAIL PROTECTED]> wrote: > Hi, > > Matt Benson wrote: > > Hi Chris: > > Try using a > > selector with your source . > > > > HTH, > > Matt > > Nice :-) > > > before = > > J:\copyfrom\subdir1\ > J:\copyfrom\subdir1\build.xml > J:\copyfrom\subdir2\ > J:\copyfrom\subdir2

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

2007-06-12 Thread Gilbert Rebhan
Hi, Matt Benson wrote: Hi Chris: Try using a selector with your source . HTH, Matt Nice :-) before = J:\copyfrom\subdir1\ J:\copyfrom\subdir1\build.xml J:\copyfrom\subdir2\ J:\copyfrom\subdir2\subsub2\build.xml J:\copyfrom\build.xml and J:\copyto is a blank directory with =

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

2007-06-12 Thread Matt Benson
Hi Chris: Try using a selector with your source . HTH, Matt --- Chris Velevitch <[EMAIL PROTECTED]> wrote: > On 6/12/07, Rebhan, Gilbert > <[EMAIL PROTECTED]> wrote: > > combine it with a condition, example = > > > > > > > > > > file="${ant.working.dir}/${mname}_script.params" />

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

2007-06-12 Thread Chris Velevitch
On 6/12/07, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: combine it with a condition, example = and make your copy target depend on the target with condtion and unless ... That's fine for one file, but cp -r tranverses a directory tree of 1000's of files. What's the ant eq

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

2007-06-12 Thread Rebhan, Gilbert
Hi, -Original Message- From: Chris Velevitch [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 10:12 AM To: Ant Users List Subject: Re: task to 'cp -r --reply=no' /* The copy task states "By default, files are only copied if the source file is newer than the desti

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

2007-06-12 Thread Chris Velevitch
On 6/12/07, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: "if the file exists ..." the copy task's default is overwrite false The copy task states "By default, files are only copied if the source file is newer than the destination file, or when the destination file does not exist", but in my case

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

2007-06-12 Thread Rebhan, Gilbert
Hi, -Original Message- From: Chris Velevitch [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 9:46 AM To: user@ant.apache.org Subject: task to 'cp -r --reply=no' /* What task is the equivalent of 'cp -r --reply=no'. This command recursively copies files an

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

2007-06-12 Thread Chris Velevitch
What task is the equivalent of 'cp -r --reply=no'. This command recursively copies files and if the file exists in the destination, skip copying that file and continue. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group m: 0415 469 095 www.flashdev.org.au