It will only copy newer files. Have the files changed? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roy Abou Assaly Sent: Thursday, April 10, 2008 4:21 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] Copy command not working
Hi, I have an automated build and only 2 directories seem to not want to copy. The result is the following: [echo] Copying D:\Builds\PRISM XP\Build 10.51.0000\XMetaLFiles to \\isdist01z\prism\vista\Build_10.51.0\XMetalFiles ... [copy] Copying 0 files to '\\isdist01z\prism\vista\Build_10.51.0\XMetalFiles'. [echo] Copying D:\Builds\PRISM XP\Build 10.51.0000\Services to \\isdist01z\prism\vista\Build_10.51.0\Services ... [copy] Copying 0 files to '\\isdist01z\prism\vista\Build_10.51.0\Services'. All I get is "Copying 0 files..." when I know there are plenty of files. I'm using NAnt 0.86 (Build 0.86.2962.0; nightly; 2008/02/10) and previously I used 0.85. I upgraded hoping this error would magically disappear. Could it be my <include name="**" /> pattern? I want to copy the entire directory and all it's child folders and files, only excluding those pesky SourceSafe files. Here's my code: <property name="project.version" value="10.51.0000" overwrite="false"/> <property name="project.version.formatted" value ="${string::substring(project.version, 0, 7)}" /> <!-- Version properties --> <property name="build.dir" value="D:\Builds\PRISM XP\Build ${project.version}"/> <property name="build.msi.dir" value="D:\Builds\PRISM XP\Build ${project.version}\MSI"/> <property name="build.xmetal.dir" value="D:\Builds\PRISM XP\Build ${project.version}\XMetaLFiles"/> <property name="build.services.dir" value="D:\Builds\PRISM XP\Build ${project.version}\Services"/> <!-- Project properties --> <property name="project.name" value="${project::get-name()}"/> <property name="project.prism.share" value="\\isdist01z\prism\vista" /> <property name="project.prism.build.release" value="${project.prism.share}\Build_${project.version.formatted}" /> <! -- NOT WORKING ... only creates empty parent directory--> <echo message="Copying ${build.xmetal.dir} to ${project.prism.build.release}\XMetalFiles ..." /> <copy todir="${project.prism.build.release}\XMetalFiles" overwrite="true" verbose="true"> <fileset basedir="${build.xmetal.dir}"> <include name="**" /> <exclude name="*.scc"/> </fileset> </copy> <! -- NOT WORKING ... only creates empty parent directory--> <echo message="Copying ${build.services.dir} to ${project.prism.build.release}\Services ..."/> <copy todir="${project.prism.build.release}\Services" overwrite="true" verbose="true"> <fileset basedir="${build.services.dir}"> <include name="**" /> <exclude name="*.scc"/> </fileset> </copy> <! -- WORKING...but has no subfolder in the destination --> <copy todir="${project.prism.build.release}\MSI" overwrite="true" verbose="true"> <fileset basedir="${build.msi.dir}"> <include name="**" /> <exclude name="*.scc"/> </fileset> </copy> Here are the source trees for the 'Services' directory (all the child directories have files): D:\BUILDS\PRISM XP\BUILD 10.51.0000\SERVICES ├───PRISM Aud File Mover ├───PRISM Blues ├───PRISM Bundler ├───PRISM Messenger ├───PRISM PeopleSearchReplace ├───PRISM RequestFiller └───PRISM TransGenItems and for the 'XMetalFiles' directory: D:\BUILDS\PRISM XP\BUILD 10.51.0000\XMETALFILES ├───Display ├───Forms │ └───PRISM ├───Icons │ └───PRISM ├───Macros │ ├───MCR_English │ └───MCR_French ├───Rules │ ├───TBR_English │ └───TBR_French └───WIN ini file Thanks! ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users