Check out the fileset functions in NantContrib
(http://nantcontrib.sourceforge.net/release/latest/help/functions/index.html
)
There's a couple of functions there that will tell you the number of files
in a fileset, and also convert it to a delimited string so you can see what
files are in there.
Cheers,
Bill
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Archer
Sent: 11 April 2008 16:58
To: Roy Abou Assaly
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Copy command not working
It must be that your fileset is empty. Add a task the loops through your
file set and echos each file name to see if this is the case.
BOb
-----Original Message-----
From: Roy Abou Assaly [mailto:[EMAIL PROTECTED]
Sent: Friday, April 11, 2008 11:55 AM
To: Bob Archer
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Copy command not working
Hi Bob,
The destination is empty. So I don't believe this will have any effect.
Thanks!
2008/4/10 Bob Archer <[EMAIL PROTECTED]>:
> 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
> L---PRISM TransGenItems
>
> and for the 'XMetalFiles' directory:
>
> D:\BUILDS\PRISM XP\BUILD 10.51.0000\XMETALFILES
> +---Display
> +---Forms
> ¦ L---PRISM
> +---Icons
> ¦ L---PRISM
> +---Macros
> ¦ +---MCR_English
> ¦ L---MCR_French
> +---Rules
> ¦ +---TBR_English
> ¦ L---TBR_French
> L---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/javao
ne
> _______________________________________________
> 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/javao
ne
_______________________________________________
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