Suppose I have a file called paths.txt with this content: [paths.txt] path\to\file1.txt path\to\file2.txt path\to\file3.txt [/paths.txt]
I want to create a few filesets with these paths except the base directory changes per fileset: <fileset id="green" basedir="C:\green"> <includesfile name="paths.txt" asis="true" /> </fileset> <fileset id="blue" basedir="C:\blue"> <includesfile name="paths.txt" asis="true" /> </fileset> <fileset id="vss" basedir="$\"> <includesfile name="paths.txt" asis="true" /> </fileset> To test this out I use <foreach> to loop through the filesets and I <echo> the filenames (see attached files). Here is a copy of the output: [output] C:\Documents and Settings\castroed\My Documents\Visual Studio Projects\AutoBuild System\test>nant NAnt 0.85 (Build 0.85.1835.0; nightly; 1/9/2005) Copyright (C) 2001-2005 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/Documents and Settings/castroed/My Documents/Visual Studio Projects/AutoBuildSystem/test/test.build Target framework: Microsoft .NET Framework 1.1 Target(s) specified: test test: [echo] green [echo] path\to\file1.txt [echo] path\to\file2.txt [echo] path\to\file3.txt [echo] blue [echo] path\to\file1.txt [echo] path\to\file2.txt [echo] path\to\file3.txt [echo] vss [echo] path\to\file1.txt [echo] path\to\file2.txt [echo] path\to\file3.txt BUILD SUCCEEDED Total time: 0.1 seconds. [/output] The basedir attribute is not considered when <includesfile> is used in the fileset. Is this a bug? --Edwin ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users