Index: NAnt.build
===================================================================
RCS file: /cvsroot/nant/nant/NAnt.build,v
retrieving revision 1.148
diff -u -r1.148 NAnt.build
--- NAnt.build	29 Feb 2004 11:32:28 -0000	1.148
+++ NAnt.build	6 Mar 2004 10:57:17 -0000
@@ -13,18 +13,43 @@
     <property name="build.number" value="${math::floor(timespan::get-total-days(datetime::now() - convert::to-datetime('01/01/2000')))}" dynamic="true" />
     <!-- platform specific properties. These are the defaults -->
     <property name="current.build.defines" value="${build.defines}" />
-    <!-- MSNetTaskAssemblies (tas.msnet) -->
-    <!-- These will be used in this order -->
-    <property name="tas.msnet" value="NAnt.MSNet" />
-    <property name="tas.msnet.tests" value="${tas.msnet}" />
-    <!-- Win32TaskAssemblies (tas.win32) -->
-    <!-- These will be used in this order -->
-    <property name="tas.win32" value="NAnt.Win32,NAnt.VisualCpp,NAnt.VSNet" />
-    <property name="tas.win32.tests" value="${tas.win32}" />
-    <!-- CoreTaskAssemblies (tas.core) -->
-    <!-- These will be used in this order -->
-    <property name="tas.core" value="NAnt.DotNet,NAnt.Zip,NAnt.NUnit,NAnt.SourceControl" />
-    <property name="tas.core.tests" value="NAnt.DotNet,NAnt.Zip" />
+
+    <fileset id="tas.msnet" basedir="src">
+        <includes name="NAnt.MSNet/NAnt.MSNet.build" />
+    </fileset>
+    
+    <fileset id="tas.msnet.tests" basedir="tests">
+        <includes name="NAnt.MSNet/NAnt.MSNet.build" />
+    </fileset>
+    
+    <fileset id="tas.win32" basedir="src">
+        <includes name="NAnt.Win32/NAnt.Win32.build" />
+        <includes name="NAnt.VisualCpp/NAnt.VisualCpp.build" />
+        <includes name="NAnt.VSNet/NAnt.VSNet.build" />
+    </fileset>
+    
+    <fileset id="tas.win32.tests" basedir="tests">
+        <includes name="NAnt.Win32/NAnt.Win32.build" />
+        <includes name="NAnt.VSNet/NAnt.VSNet.build" />
+        <!-- <includes name="NAnt.VisualCpp/NAnt.VisualCpp.build" /> -->
+    </fileset>
+    
+    <fileset id="tas.core" basedir="src">
+        <includes name="NAnt.DotNet/NAnt.DotNet.build" />
+        <includes name="NAnt.Zip/NAnt.Zip.build" />
+        <includes name="NAnt.NUnit/NAnt.NUnit.build" />
+        <includes name="NAnt.SourceControl/NAnt.SourceControl.build" />
+    </fileset>
+    
+    <fileset id="tas.core.tests" basedir="tests">
+        <includes name="NAnt.DotNet/NAnt.DotNet.build" />
+        <includes name="NAnt.Zip/NAnt.Zip.build" />
+        <!--
+        <includes name="NAnt.NUnit/NAnt.NUnit.build" />
+        <includes name="NAnt.SourceControl/NAnt.SourceControl.build" />
+        -->
+    </fileset>
+    
     <!-- exclude the nunit and sourcecontrol assemblies -->
     <!-- named project configurations (used by self-test and self-doc tasks) -->
     <target name="debug" description="Perform a 'debug' build">
@@ -106,37 +131,32 @@
         <!-- build NAnt.Console assembly -->
         <nant buildfile="src/NAnt.Console/NAnt.Console.build" target="build" />
         <!-- build task assemblies -->
-        <foreach item="String" delim="," property="filename" in="${tas.core}">
-            <nant buildfile="src/${filename}/${filename}.build" target="build" />
-        </foreach>
+        <nant target="build">
+            <buildfiles refid="tas.core"/>
+        </nant>
         <!-- build Microsoft.NET specific task assemblies if we are on win32 and targeting a .NET Framework -->
-        <if test="${platform::is-win32() and framework::get-family(framework::get-target-framework()) = 'net'}">
-            <foreach item="String" delim="," property="filename" in="${tas.msnet}">
-                <nant buildfile="src/${filename}/${filename}.build" target="build" />
-            </foreach>
-        </if>            
+        <nant target="build" if="${platform::is-win32() and framework::get-family(framework::get-target-framework()) = 'net'}">
+            <buildfiles refid="tas.msnet"/>
+        </nant>
         <!-- build win32 specific task assemblies if we are on win32 -->
-        <foreach item="String" delim="," property="filename" in="${tas.win32}">
-            <nant buildfile="src/${filename}/${filename}.build" target="build" if="${platform::is-win32()}" />
-        </foreach>
+        <nant target="build" if="${platform::is-win32()}">
+            <buildfiles refid="tas.win32" />
+        </nant>
         <!-- build NAnt.Core.Tests assembly -->
         <nant buildfile="tests/NAnt.Core/NAnt.Core.build" target="build" />
         <!-- build NAnt.Console.Tests assembly -->
         <nant buildfile="tests/NAnt.Console/NAnt.Console.build" target="build" />
         <!-- build tests for task assemblies -->
-        <foreach item="String" delim="," property="filename" in="${tas.core.tests}">
-            <nant buildfile="tests/${filename}/${filename}.build" target="build" />
-        </foreach>
+        <nant target="build">
+            <buildfiles refid="tas.core.tests"/>
+        </nant>
         <!-- build tests for Microsoft.NET specific extension assemblies if we are on win32 and targeting a .NET Framework -->
-        <if test="${platform::is-win32() and framework::get-family(framework::get-target-framework()) = 'net'}">
-            <foreach item="String" delim="," property="filename" in="${tas.msnet.tests}">
-                <nant buildfile="tests/${filename}/${filename}.build" target="build" />
-            </foreach>
-        </if>
-        <!-- build tests for win32 specific task assemblies if we are on win32 -->
-        <foreach item="String" delim="," property="filename" in="${tas.win32.tests}">
-            <nant buildfile="tests/${filename}/${filename}.build" target="build" if="${platform::is-win32()}" />
-        </foreach>
+        <nant target="build" if="${platform::is-win32() and framework::get-family(framework::get-target-framework()) = 'net'}">
+            <buildfiles refid="tas.msnet.tests"/>
+        </nant>
+        <nant target="build" if="${platform::is-win32()}">
+            <buildfiles refid="tas.win32.tests" />
+        </nant>
     </target>
     <!-- test the newly built NAnt -->
     <target name="test" depends="build" description="Tests current configuration">
@@ -164,19 +184,16 @@
         <!-- test NAnt.Core assembly -->
         <nant buildfile="tests/NAnt.Core/NAnt.Core.build" target="test" />
         <!-- test task assemblies -->
-        <foreach item="String" delim="," property="filename" in="${tas.core.tests}">
-            <nant buildfile="tests/${filename}/${filename}.build" target="test" />
-        </foreach>
-        <!-- test Microsoft.NET specific extensions assemblies if we are on win32 and targeting a .NET Framework -->
-        <if test="${platform::is-win32() and framework::get-family(framework::get-target-framework()) = 'net'}">
-            <foreach item="String" delim="," property="filename" in="${tas.msnet.tests}">
-                <nant buildfile="tests/${filename}/${filename}.build" target="test" />
-            </foreach>
-        </if>            
-        <!-- test win32 specific task assemblies -->
-        <foreach item="String" delim="," property="filename" in="${tas.win32.tests}">
-            <nant buildfile="tests/${filename}/${filename}.build" target="test" if="${platform::is-win32()}" />
-        </foreach>
+        <nant target="test">
+            <buildfiles refid="tas.core.tests"/>
+        </nant>
+        <!-- test Microsoft.NET specific extension assemblies if we are on win32 and targeting a .NET Framework -->
+        <nant target="test" if="${platform::is-win32() and framework::get-family(framework::get-target-framework()) = 'net'}">
+            <buildfiles refid="tas.msnet.tests"/>
+        </nant>
+        <nant target="test" if="${platform::is-win32()}">
+            <buildfiles refid="tas.win32.tests" />
+        </nant>
     </target>
     <target name="userdoc" depends="build" description="Builds user documentation">
         <!-- build the documenter -->
Index: bin/NAnt.Core.dll
===================================================================
RCS file: /cvsroot/nant/nant/bin/NAnt.Core.dll,v
retrieving revision 1.60
diff -u -r1.60 NAnt.Core.dll
Binary files /tmp/cvspAhai1 and NAnt.Core.dll differ
Index: bin/NAnt.DotNetTasks.dll
===================================================================
RCS file: /cvsroot/nant/nant/bin/NAnt.DotNetTasks.dll,v
retrieving revision 1.31
diff -u -r1.31 NAnt.DotNetTasks.dll
Binary files /tmp/cvs0RI9hR and NAnt.DotNetTasks.dll differ
Index: bin/NAnt.ZipTasks.dll
===================================================================
RCS file: /cvsroot/nant/nant/bin/NAnt.ZipTasks.dll,v
retrieving revision 1.29
diff -u -r1.29 NAnt.ZipTasks.dll
Binary files /tmp/cvsKohelH and NAnt.ZipTasks.dll differ
Index: src/CommonAssemblyInfo.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/CommonAssemblyInfo.cs,v
retrieving revision 1.10
diff -u -r1.10 CommonAssemblyInfo.cs
--- src/CommonAssemblyInfo.cs	3 Jan 2004 16:08:38 -0000	1.10
+++ src/CommonAssemblyInfo.cs	6 Mar 2004 10:57:29 -0000
@@ -1,43 +1,27 @@
-// NAnt - A .NET build tool
-// Copyright (C) 2001 Gerry Shaw
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-//
-// Gerry Shaw (gerry_shaw@yahoo.com)
-// Scott Hernandez (ScottHernandez@hotmail.com)
-// Gert Driesen (gert.driesen@ardatis.com)
-
 using System;
 using System.Reflection;
 using System.Runtime.InteropServices;
 
-// Make assembly as NOT visible to COM
-[assembly: ComVisible(false)]
-
-// Mark assembly CLS compliant
-[assembly: CLSCompliant(true)]
+//------------------------------------------------------------------------------
+// <autogenerated>
+//     This code was generated by a tool.
+//     Runtime Version: 1.1.4322.573
+//
+//     Changes to this file may cause incorrect behavior and will be lost if 
+//     the code is regenerated.
+// </autogenerated>
+//------------------------------------------------------------------------------
 
-[assembly: AssemblyTitle("NAnt")]
-[assembly: AssemblyDescription("A .NET Build Tool")]
-[assembly: AssemblyConfiguration("net-1.0.win32; nightly")]
-[assembly: AssemblyCompany("http://nant.sourceforge.net")]
-[assembly: AssemblyProduct("NAnt")]
-[assembly: AssemblyCopyright("Copyright (C) 2001-2004 Gerry Shaw")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
+[assembly: ComVisibleAttribute(false)]
+[assembly: CLSCompliantAttribute(true)]
+[assembly: AssemblyTitleAttribute("NAnt")]
+[assembly: AssemblyDescriptionAttribute("A .NET Build Tool")]
+[assembly: AssemblyConfigurationAttribute("net-1.1.win32; nightly")]
+[assembly: AssemblyCompanyAttribute("http://nant.sourceforge.net")]
+[assembly: AssemblyProductAttribute("NAnt")]
+[assembly: AssemblyCopyrightAttribute("Copyright (C) 2001-2004 Gerry Shaw")]
+[assembly: AssemblyTrademarkAttribute("")]
+[assembly: AssemblyCultureAttribute("")]
+[assembly: AssemblyVersionAttribute("0.85.1526.0")]
+[assembly: AssemblyInformationalVersionAttribute("0.85")]
 
-// build number expressed in number of days since 1/1/2000
-[assembly: AssemblyVersion("0.85.1447.0")]
-[assembly: AssemblyInformationalVersion("0.85")]
Index: src/NAnt.Core/Tasks/NAntTask.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.Core/Tasks/NAntTask.cs,v
retrieving revision 1.24
diff -u -r1.24 NAntTask.cs
--- src/NAnt.Core/Tasks/NAntTask.cs	19 Feb 2004 20:39:00 -0000	1.24
+++ src/NAnt.Core/Tasks/NAntTask.cs	6 Mar 2004 10:57:30 -0000
@@ -26,6 +26,7 @@
 
 using NAnt.Core.Attributes;
 using NAnt.Core.Util;
+using NAnt.Core.Types;
 
 namespace NAnt.Core.Tasks {
     /// <summary>
@@ -63,6 +64,7 @@
         #region Private Instance Fields
 
         private FileInfo _buildFile;
+        private FileSet _buildFileSet = new FileSet();
         private string _target;
         private bool _inheritAll = true;
         private ArrayList _overrideProperties = new ArrayList();
@@ -74,7 +76,7 @@
         /// <summary>
         /// The build file to build.
         /// </summary>
-        [TaskAttribute("buildfile", Required=true) ]
+        [TaskAttribute("buildfile")]
         public FileInfo BuildFile {
             get { return _buildFile; }
             set { _buildFile = value; }
@@ -93,6 +95,15 @@
         }
 
         /// <summary>
+        /// Used to specify a list of build files to process.
+        /// </summary>
+        [BuildElement("buildfiles")]
+        public virtual FileSet BuildFilesFileSet {
+            get { return _buildFileSet; }
+            set { _buildFileSet = value; }
+        }
+
+        /// <summary>
         /// Specifies whether current property values should be inherited by 
         /// the executed project. The default is <see langword="false" />.
         /// </summary>
@@ -117,11 +128,28 @@
         #region Override implementation of Task
 
         protected override void ExecuteTask() {
-            Log(Level.Info, LogPrefix + "{0} {1}", BuildFile.FullName, DefaultTarget);
+            // run the build file specified in an attribute
+            int buildFileCount = 0;
+            if (BuildFile != null) {
+                RunBuild(BuildFile);
+                buildFileCount++;
+            };
+            // run all build files specified in the fileset
+            foreach (string s in BuildFilesFileSet.FileNames) {
+                RunBuild(new FileInfo(s));
+                buildFileCount++;
+            }
+            if (buildFileCount == 0) {
+                throw new BuildException("You need to specify at least one build file.", Location);
+            }
+        }
+
+        private void RunBuild(FileInfo buildFile) {
+            Log(Level.Info, LogPrefix + "{0} {1}", buildFile.FullName, DefaultTarget);
             Log(Level.Info, string.Empty);
 
             // create new project with same threshold as current project and increased indentation level
-            Project project = new Project(BuildFile.FullName, Project.Threshold, 
+            Project project = new Project(buildFile.FullName, Project.Threshold, 
                 Project.IndentationLevel + 1);
 
             // add listeners of current project to new project
@@ -177,7 +205,7 @@
             try {
                 // change current directory to directory of the build file that
                 // will be run
-                Directory.SetCurrentDirectory(BuildFile.DirectoryName);
+                Directory.SetCurrentDirectory(buildFile.DirectoryName);
                 // run the given build
                 if (!project.Run()) {
                     throw new BuildException("Nested build failed.  Refer to build log for exact reason.");
