set the defaultexcludes attribute to false on the fileset. By default, these directories get excluded:


Excludes.Add("**/*~");
               Excludes.Add("**/#*#");
               Excludes.Add("**/.#*");
               Excludes.Add("**/%*%");
               Excludes.Add("**/CVS");
               Excludes.Add("**/CVS/**");
               Excludes.Add("**/.svn");
               Excludes.Add("**/.svn/**");
               Excludes.Add("**/.cvsignore");
               Excludes.Add("**/SCCS");
               Excludes.Add("**/SCCS/**");
               Excludes.Add("**/vssver.scc");
               Excludes.Add("**/_vti_cnf/**");

I guess that should be in the fileset documentation at:

http://nant.sourceforge.net/nightly/help/types/fileset.html


Ian

Merrill,

On my system, they are not hidden.
I am seeing this on 0.84 and the latest nightly build.

After looking into this a little more, it looks more like a Fileset
issue. If I use a foreach to loop through the folders the directories
named 'cvs' do not appear. (foreach with item="File" does this also.)

Here is an example build file:
<foreach item="Folder" property="foldername">
        <in>
                <items basedir="c:\testdir\new" >
                        <include name="**" />
                </items>
        </in>
        <do>
                <echo message= "${foldername}" />
        </do>
</foreach>

This will echo each folder name, but skips the 'cvs' folders.

David

-----Original Message-----
From: Merrill Cornish [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 9:45 AM
To: Shaber, David; [EMAIL PROTECTED]
Subject: Re: [Nant-users] Copy misses 'CVS' Directories


David,

On my Windows XP machine, my CVS directories are marked as Hidden.  I
don't see an option on the <copy> task that addresses whether hidden
files/directories are copied, but it appears from your experience they
aren't.  On Windows, you can use the <attrib> task to turn off the
Hidden attributes, but that may cause problems elsewhere.

Merrill


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users




--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to