[Mono-list] Nant & buildfile required errors? (+patch)
Jeroen Janssen
japj@darius.demon.nl
Sun, 08 Dec 2002 10:04:49 +0100
This is a multi-part message in MIME format.
--------------010209050205070500020003
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
I already send an email to the winforms mailinglist about this, but that
might not be the right place (so I'm sending this now to the mono-list).
I noticed that the nant .build are (probably?) used by people to build
mcs class libraries. However, I am getting 'buildfile required
attribute' errors. Am I using a wrong version of Nant? (0.6.0 from mono
or the latest 0.7.9.0 seem to have the same problem).
I attached an updated patch for all .build files that require changes to
build things with NAnt/csc on W2K (I just noted a Cscompmgd directory
with .build file was added).
If this a problem on my part, I would like to know. If not then I hope
that people extending the .build files also check if Nant can use the
.build files to actually build things :)
Best regards,
Jeroen Janssen
--------------010209050205070500020003
Content-Type: text/plain;
name="nant_build.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nant_build.patch"
Index: class/library.build
===================================================================
RCS file: /mono/mcs/class/library.build,v
retrieving revision 1.32
diff -u -r1.32 library.build
--- class/library.build 7 Dec 2002 20:38:00 -0000 1.32
+++ class/library.build 7 Dec 2002 22:09:36 -0000
@@ -8,27 +8,27 @@
<property name="debug" value="false"/>
<target name="build">
- <nant basedir="corlib" target="build"/>
- <nant basedir="Cscompmgd" target="build"/>
- <nant basedir="I18N" target="build"/>
- <nant basedir="System" target="build"/>
- <nant basedir="System.Drawing" target="build"/>
- <nant basedir="System.EnterpriseServices" target="build"/>
- <nant basedir="System.XML" target="build"/>
- <nant basedir="Mono.Data.Tds" target="build"/>
- <nant basedir="System.Data" target="build"/>
- <nant basedir="Mono.Data.MySql" target="build"/>
- <nant basedir="Mono.Data.PostgreSqlClient" target="build"/>
- <nant basedir="Mono.Data.SqliteClient" target="build"/>
- <nant basedir="Mono.Data.SybaseClient" target="build"/>
- <nant basedir="Mono.Data.TdsClient" target="build"/>
- <nant basedir="System.Web" target="build"/>
- <nant basedir="System.Web.Services" target="build"/>
- <nant basedir="Microsoft.VisualBasic" target="build"/>
- <nant basedir="System.Configuration.Install" target="build"/>
- <nant basedir="System.Runtime.Remoting" target="build"/>
- <nant basedir="System.Runtime.Serialization.Formatters.Soap" target="build"/>
- <nant basedir="Mono.PEToolkit" target="build"/>
+ <nant basedir="corlib" target="build" buildfile="corlib/corlib.build"/>
+ <nant basedir="Cscompmgd" target="build" buildfile="Cscompmgd/Cscompmgd.build"/>
+ <nant basedir="I18N" target="build" buildfile="I18N/I18N.build"/>
+ <nant basedir="System" target="build" buildfile="System/System.build"/>
+ <nant basedir="System.Drawing" target="build" buildfile="System.Drawing/System.Drawing.build"/>
+ <nant basedir="System.EnterpriseServices" target="build" buildfile="System.EnterpriseServices/System.EnterpriseServices.build"/>
+ <nant basedir="System.XML" target="build" buildfile="System.XML/System.XML.build"/>
+ <nant basedir="Mono.Data.Tds" target="build" buildfile="Mono.Data.Tds/Mono.Data.Tds.build"/>
+ <nant basedir="System.Data" target="build" buildfile="System.Data/System.Data.build"/>
+ <nant basedir="Mono.Data.MySql" target="build" buildfile="Mono.Data.MySql/Mono.Data.MySql.build"/>
+ <nant basedir="Mono.Data.PostgreSqlClient" target="build" buildfile="Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient.build"/>
+ <nant basedir="Mono.Data.SqliteClient" target="build" buildfile="Mono.Data.SqliteClient/Mono.Data.SqliteClient.build"/>
+ <nant basedir="Mono.Data.SybaseClient" target="build" buildfile="Mono.Data.SybaseClient/Mono.Data.SybaseClient.build"/>
+ <nant basedir="Mono.Data.TdsClient" target="build" buildfile="Mono.Data.TdsClient/Mono.Data.TdsClient.build"/>
+ <nant basedir="System.Web" target="build" buildfile="System.Web/System.Web.build"/>
+ <nant basedir="System.Web.Services" target="build" buildfile="System.Web.Services/System.Web.Services.build"/>
+ <nant basedir="Microsoft.VisualBasic" target="build" buildfile="Microsoft.VisualBasic/Microsoft.VisualBasic.build"/>
+ <nant basedir="System.Configuration.Install" target="build" buildfile="System.Configuration.Install/System.Configuration.Install.build"/>
+ <nant basedir="System.Runtime.Remoting" target="build" buildfile="System.Runtime.Remoting/System.Runtime.Remoting.build"/>
+ <nant basedir="System.Runtime.Serialization.Formatters.Soap" target="build" buildfile="System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap.build"/>
+ <nant basedir="Mono.PEToolkit" target="build" buildfile="Mono.PEToolkit/PEToolkit.build"/>
</target>
<target name="test">
Index: class/System/System.build
===================================================================
RCS file: /mono/mcs/class/System/System.build,v
retrieving revision 1.15
diff -u -r1.15 System.build
--- class/System/System.build 20 Jun 2002 14:32:07 -0000 1.15
+++ class/System/System.build 7 Dec 2002 22:09:43 -0000
@@ -26,7 +26,7 @@
</sources>
</csc>
<copy file="../lib/System.dll" tofile="Test/System.dll"/>
- <nant basedir="Test" target="build"/>
+ <nant basedir="Test" target="build" buildfile="Test/System_test.build"/>
</target>
<target name="test" depends="build">
Index: class/System.Configuration.Install/System.Configuration.Install.build
===================================================================
RCS file: /mono/mcs/class/System.Configuration.Install/System.Configuration.Install.build,v
retrieving revision 1.2
diff -u -r1.2 System.Configuration.Install.build
--- class/System.Configuration.Install/System.Configuration.Install.build 2 Dec 2002 15:59:31 -0000 1.2
+++ class/System.Configuration.Install/System.Configuration.Install.build 7 Dec 2002 22:09:48 -0000
@@ -20,7 +20,7 @@
</sources>
</csc>
<copy file="../lib/System.Configuration.Install.dll" tofile="Test/System.Configuration.Install.dll"/>
- <nant basedir="Test" target="build"/>
+ <nant basedir="Test" target="build" buildfile="Test/System.Configuration.Install_test.build"/>
</target>
<target name="test" depends="build">
Index: class/System.Windows.Forms/System.Windows.Forms.build
===================================================================
RCS file: /mono/mcs/class/System.Windows.Forms/System.Windows.Forms.build,v
retrieving revision 1.3
diff -u -r1.3 System.Windows.Forms.build
--- class/System.Windows.Forms/System.Windows.Forms.build 2 Nov 2002 21:41:37 -0000 1.3
+++ class/System.Windows.Forms/System.Windows.Forms.build 7 Dec 2002 22:10:00 -0000
@@ -23,10 +23,12 @@
<includes name="**/*.cs"/>
<excludes name="Test/**"/>
<excludes name="System.Windows.Forms.Test/**"/>
+ <excludes name="SWFTest/**"/>
<excludes name="Gtk/**"/>
<excludes name="System.Windows.Forms/PictureBox.cs"/>
<excludes name="System.Windows.Forms.Design/TODOAttribute.cs"/>
<excludes name="System.Windows.Forms.Design/AssemblyInfo.cs"/>
+ <excludes name="System.Windows.Forms/AssemblyInfo.cs"/>
<excludes name="WINELib/**"/>
</sources>
</csc>
Index: class/System.XML/System.XML.build
===================================================================
RCS file: /mono/mcs/class/System.XML/System.XML.build,v
retrieving revision 1.9
diff -u -r1.9 System.XML.build
--- class/System.XML/System.XML.build 20 Jun 2002 12:11:11 -0000 1.9
+++ class/System.XML/System.XML.build 7 Dec 2002 22:10:04 -0000
@@ -20,7 +20,7 @@
</sources>
</csc>
<copy file="../lib/System.Xml.dll" tofile="Test/System.XML.dll"/>
- <nant basedir="Test" target="build"/>
+ <nant basedir="Test" target="build" buildfile="Test/System.XML_test.build"/>
</target>
<target name="test" depends="build">
Index: class/corlib/corlib.build
===================================================================
RCS file: /mono/mcs/class/corlib/corlib.build,v
retrieving revision 1.30
diff -u -r1.30 corlib.build
--- class/corlib/corlib.build 19 Oct 2002 15:40:37 -0000 1.30
+++ class/corlib/corlib.build 7 Dec 2002 22:10:09 -0000
@@ -113,7 +113,7 @@
<excludes name="System.Security.Permissions/SecurityPermissionAttribute.cs"/>
</sources>
</csc>
- <nant basedir="Test" target="build"/>
+ <nant basedir="Test" target="build" buildfile="Test/corlib_test.build"/>
</target>
<target name="mcs-build">
--------------010209050205070500020003--