Bugs item #1666584, was opened at 2007-02-22 23:59
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1666584&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.85
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: matthenry (matthenry)
>Assigned to: Gert Driesen (drieseng)
Summary: Delete task exclusions are ignored for the root dir

Initial Comment:
Create a folder called "Rootfolder".  Put a subfolder in it called "Subfolder". 
  In Subfolder, put a build file called buildall.build.  buildall.build should 
look like this:

<project name="BuildAll">
    <target name="delete">
        <delete> 
            <fileset>
                <include name="../**" />
                <exclude name="buildall.build" />
                <exclude name="foo.txt" />
            </fileset>
        </delete>
    </target>
</project>

Now create a file called foo.txt and put it in Rootfolder.  Create another file 
called foo.txt and put it in the Subfolder.

Now go to the Subfolder and run the delete target ("nant delete").

The foo.txt file in the Subfolder will, correctly, not be deleted. But the one 
in the Rootfolder will be deleted.

----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2007-02-25 21:03

Message:
Logged In: YES 
user_id=707851
Originator: NO

If you want to exclude a given file in all directory, then you should use
a pattern like this:

<exclude name="**/buildall.build" />

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1666584&group_id=31650

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to