Hello Nanters...
It would be very nice, if the nantcontrib source distribution had the win32 specific stuff separated from the rest, so building in a non-win32 enviroment would work fine, out of the box. NantContrib compiles it just fine on FreeBSD removing the following files before compiling: src/Functions/ServiceFunctions.cs src/Tasks/SharePoint tests/Tasks/SharePoint tests/Tasks/SourceSafe src/Tasks/BizTalk src/Tasks/Web/ApplicationPool.cs src/Tasks/Msi Well, as the build file does include "*.*" and try to compile all stuff, i think it would be a good idea to move all that specific thing to a special folder (i.e. Win32) and make the build file figure out if it should include thouse or not. Im attaching NantContrig.build with some little changes, wich makes it really compile all righty on my OS. Also, mono doesnt seem to like the /nologo stuff (patch-XsdTask.cs) I have not had the time to really test all tasks... but i.e. with svn, i have to change this: AbstractSvnTask.cs: protected const string SVN_EXE = "svn.exe"; leaving the .exe out of it. It would be very nice to not depend on the ".exe" suffix, wich is win32 specific. IIRC, on windows you can also call "svn" instead of "svn.exe" right? Good luck, and thanks for the nant goodies!... Phillip N.
--- NAntContrib.build.orig Fri Jun 2 22:07:12 2006 +++ NAntContrib.build Tue Jun 20 02:09:19 2006 @@ -141,6 +141,7 @@ <include name="Tasks/XsdTask.cs" /> </sources> <references> + <include name="System.Data.dll" /> <include name="${nant.dir}/bin/NAnt.Core.dll" /> <include name="${nant.dir}/bin/NAnt.DotNetTasks.dll" /> </references> @@ -160,12 +161,13 @@ <if test="${not schema.uptodate}"> <mkdir dir="${build.dir}/schema/Msi" unless="${directory::exists(build.dir + '/schema/Msi')}" /> <loadtasks assembly="${build.dir}/bin/NAnt.Xsd.Tasks.dll" /> - <xsd +<!-- <xsd schema="${src.dir}/Tasks/Msi/MsiTask.xsd" language="CS" namespace="NAnt.Contrib.Schemas.Msi" outputdir="${build.dir}/schema/Msi" uri="NAnt.Contrib.Tasks.Msi.MsiTask" /> +--> </if> </target> @@ -189,6 +191,8 @@ <warning number="1591" /> <!-- do not report deprecation warnings --> <warning number="0618" /> + <warning number="0219" /> + <warning number="0169" /> </nowarn> <sources> <include name="${src.dir}/**/*.cs" /> @@ -197,6 +201,8 @@ <exclude name="${src.dir}/tasks/SharePoint/*.cs" /> </sources> <references> + <include name="System.Data.dll" /> + <include name="System.Web.dll" /> <include name="${nant.dir}/bin/NAnt.Core.dll" /> <include name="${nant.dir}/bin/NAnt.DotNetTasks.dll" /> <include name="${nant.dir}/bin/NAnt.SourceControlTasks.dll" /> @@ -244,6 +250,7 @@ <nowarn> <!-- do not report warnings for missing XML comments --> <warning number="1591" /> + <warning number="0219" /> </nowarn> <sources> <include name="${tests.dir}/**/*.cs" /> @@ -265,7 +272,7 @@ <target name="test" depends="buildtests init" description="run unit tests"> <!-- make copy of NAnt configuration file --> <copy - file="${path::combine(nant::get-base-directory(), 'nant.exe.config')}" + file="${path::combine(nant::get-base-directory(), 'NAnt.exe.config')}" tofile="${path::combine(nant::get-base-directory(), 'nant.tests.config')}" /> <!-- make sure the config file is writable -->
--- src/Tasks/XsdTask.cs.orig Tue Jun 20 01:19:52 2006 +++ src/Tasks/XsdTask.cs Tue Jun 20 01:19:58 2006 @@ -369,7 +369,7 @@ } // suppress logo-banner - Arguments.Add(new Argument("/nologo")); + //Arguments.Add(new Argument("/nologo")); try { base.ExecuteTask();
_______________________________________________ NAntContrib-Developer mailing list NAntContrib-Developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer