Bugs item #1618883, was opened at 2006-12-19 17:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1618883&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: Core
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Antony Perkov (aperkov)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fileset items included "asis" ignore the "basedir"

Initial Comment:
If you include an item in a fileset with asis set to true like so:

<fileset basedir="C:\Foo">
    <include name="Bar.txt" asis="true" />
</fileset>

The basedir attribute will be ignored and the fileset will include 
[NAntWorkingDir]\Bar.txt instead of C:\Foo\Bar.txt.

This can be corrected by modifying the FileSet.Scan() method to use something 
like the following:

foreach (string name in AsIs) {
    string fullName = Path.Combine BaseDirectory.FullName, name);

    if (Directory.Exists(fullName)){
        _scanner.DirectoryNames.Add(fullName);
    } else {
        _scanner.FileNames.Add(fullName);
    }
}

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1618883&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