fixed nh build scripts
automated build of Spring.Messaging.Ems and Spring.Testing.Microsoft if dlls are available
This commit is contained in:
124
Spring.build
124
Spring.build
@@ -22,10 +22,15 @@ Build properties that may be set:
|
||||
signs all assemblies. Requires the key file $/Spring.Net.snk to be in place
|
||||
"package.version":
|
||||
set the package version
|
||||
"build-testing-ems":
|
||||
set to true if you want to build Tibco EMS support (you need to copy tibco.ems.dll and tibco.ems.admin.dll into /lib/net/2.0 first)
|
||||
"build-testing-microsoft":
|
||||
set to true if local machine has VS.NET 2008 MSTest installed (you need to copy Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll to /lib/net/2.0 first)
|
||||
|
||||
Additional Remarks:
|
||||
===================
|
||||
|
||||
*) Building Spring.Messaging.Ems
|
||||
if you want to build Spring.Messaging.Ems (Tibco EMS support), you need to copy tibco.ems.dll and tibco.ems.admin.dll into '/lib/net/2.0'
|
||||
|
||||
*) Building Spring.Testing.Microsoft
|
||||
if you want to build Spring.Testing.Microsoft (MSTest Support), you need to copy Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll to '/lib/net/2.0'
|
||||
-->
|
||||
|
||||
<!-- global project settings -->
|
||||
@@ -229,7 +234,8 @@ Build properties that may be set:
|
||||
<call target="compile-build-1.0"/>
|
||||
<call target="compile-build-1.1"/>
|
||||
<call target="compile-build-2.0"/>
|
||||
|
||||
<call target="compile-build-3.0"/>
|
||||
<call target="compile-build-3.5"/>
|
||||
|
||||
<!-- Ignore Compact Framework 1.0 for now -->
|
||||
<!-- call target="compile-build-netcf-1.0"/ -->
|
||||
@@ -377,8 +383,8 @@ Build properties that may be set:
|
||||
<nant buildfile="src/Spring/Spring.Data.NHibernate12/Spring.Data.NHibernate12.build" target="build" if="${build-data and (nant.settings.currentframework == 'net-1.1' or nant.settings.currentframework == 'net-2.0' or nant.settings.currentframework == 'mono-2.0') and not net-3.0}"/>
|
||||
<nant buildfile="src/Spring/Spring.Data.NHibernate20/Spring.Data.NHibernate20.build" target="build" if="${build-data and (nant.settings.currentframework == 'net-2.0' or nant.settings.currentframework == 'mono-2.0') and not net-3.0}"/>
|
||||
<nant buildfile="src/Spring/Spring.Data.NHibernate21/Spring.Data.NHibernate21.build" target="build" if="${build-data and (nant.settings.currentframework == 'net-2.0' or nant.settings.currentframework == 'mono-2.0') and not net-3.0}"/>
|
||||
<nant buildfile="src/Spring/Spring.Data.NHibernate30/Spring.Data.NHibernate30.build" target="build" if="${build-data and (nant.settings.currentframework == 'net-3.5' or nant.settings.currentframework == 'mono-2.0') and not net-3.0}"/>
|
||||
<nant buildfile="src/Spring/Spring.Services/Spring.Services.build" target="build" if="${build-services}"/>
|
||||
<nant buildfile="src/Spring/Spring.Data.NHibernate30/Spring.Data.NHibernate30.build" target="build" if="${build-data and (nant.settings.currentframework == 'net-3.5' or nant.settings.currentframework == 'mono-2.0')}"/>
|
||||
<nant buildfile="src/Spring/Spring.Services/Spring.Services.build" target="build" if="${build-services and not net-3.5}"/>
|
||||
<nant buildfile="src/Spring/Spring.Testing.NUnit/Spring.Testing.NUnit.build" target="build" if="${build-testing-nunit and not net-3.0}"/>
|
||||
<nant buildfile="src/Spring/Spring.Testing.Microsoft/Spring.Testing.Microsoft.build" target="build" if="${build-testing-microsoft and (nant.settings.currentframework == 'net-2.0') and not net-3.0}"/>
|
||||
<nant buildfile="src/Spring/Spring.Messaging.Ems/Spring.Messaging.Ems.build" target="build" if="${build-ems and not net-3.0}"/>
|
||||
@@ -403,10 +409,10 @@ Build properties that may be set:
|
||||
<nant buildfile="test/Spring/Spring.Data.NHibernate21.Integration.Tests/Spring.Data.NHibernate21.Integration.Tests.build" target="test"
|
||||
if="${build-data and nant.settings.currentframework == 'net-2.0' and not net-3.0}"/>
|
||||
<nant buildfile="test/Spring/Spring.Data.NHibernate30.Tests/Spring.Data.NHibernate30.Tests.build" target="test"
|
||||
if="${build-data and nant.settings.currentframework == 'net-3.5' and not net-3.0}"/>
|
||||
if="${build-data and nant.settings.currentframework == 'net-3.5'}"/>
|
||||
<nant buildfile="test/Spring/Spring.Data.NHibernate30.Integration.Tests/Spring.Data.NHibernate30.Integration.Tests.build" target="test"
|
||||
if="${build-data and nant.settings.currentframework == 'net-3.5' and not net-3.0}"/>
|
||||
<nant buildfile="test/Spring/Spring.Services.Tests/Spring.Services.Tests.build" target="test" if="${build-services}"/>
|
||||
<nant buildfile="test/Spring/Spring.Services.Tests/Spring.Services.Tests.build" target="test" if="${build-services and not net-3.5}"/>
|
||||
<nant buildfile="test/Spring/Spring.Web.Tests/Spring.Web.Tests.build" target="test" if="${build-web and not net-3.0}"/>
|
||||
<nant buildfile="test/Spring/Spring.Testing.NUnit.Tests/Spring.Testing.NUnit.Tests.build" target="test" if="${build-testing-nunit and not net-3.0}"/>
|
||||
<nant buildfile="test/Spring/Spring.Testing.Microsoft.Tests/Spring.Testing.Microsoft.Tests.build" target="test" if="${build-testing-microsoft and (nant.settings.currentframework == 'net-2.0') and not net-3.0}"/>
|
||||
@@ -427,13 +433,13 @@ Build properties that may be set:
|
||||
<call target="copykeys" if="${project.build.sign}"/>
|
||||
<call target="common.generate-assemblyinfo"/>
|
||||
<!-- disable namespaces not supported in net-1.0 -->
|
||||
<property name="build-web" value="false" />
|
||||
<property name="build-nms" value="false" />
|
||||
<property name="build-ems" value="false" />
|
||||
<property name="build-quartz" value="false" />
|
||||
<property name="build-msmq" value="false" />
|
||||
<property name="build-msmq-tests" value="false" />
|
||||
<property name="build-velocity" value="false" />
|
||||
<property name="build-web" value="false" overwrite="true" />
|
||||
<property name="build-nms" value="false" overwrite="true" />
|
||||
<property name="build-ems" value="false" overwrite="true" />
|
||||
<property name="build-quartz" value="false" overwrite="true" />
|
||||
<property name="build-msmq" value="false" overwrite="true" />
|
||||
<property name="build-msmq-tests" value="false" overwrite="true" />
|
||||
<property name="build-velocity" value="false" overwrite="true" />
|
||||
<call target="compile-test" />
|
||||
</target>
|
||||
|
||||
@@ -441,11 +447,11 @@ Build properties that may be set:
|
||||
depends="set-net-1.1-runtime-configuration, check-spring-basedir, clean-current-bin-dir, TestInit">
|
||||
<call target="copykeys" if="${project.build.sign}"/>
|
||||
<call target="common.generate-assemblyinfo"/>
|
||||
<property name="build-ems" value="false" />
|
||||
<property name="build-nms" value="false" />
|
||||
<property name="build-msmq" value="false" />
|
||||
<property name="build-msmq-tests" value="false" />
|
||||
<property name="build-velocity" value="false" />
|
||||
<property name="build-ems" value="false" overwrite="true" />
|
||||
<property name="build-nms" value="false" overwrite="true" />
|
||||
<property name="build-msmq" value="false" overwrite="true" />
|
||||
<property name="build-msmq-tests" value="false" overwrite="true" />
|
||||
<property name="build-velocity" value="false" overwrite="true" />
|
||||
<call target="compile-test" />
|
||||
</target>
|
||||
|
||||
@@ -453,7 +459,6 @@ Build properties that may be set:
|
||||
depends="set-net-2.0-runtime-configuration, check-spring-basedir, clean-current-bin-dir, TestInit">
|
||||
<call target="copykeys" if="${project.build.sign}"/>
|
||||
<call target="common.generate-assemblyinfo"/>
|
||||
<property name="build-ems" value="false" />
|
||||
<call target="compile-test" />
|
||||
</target>
|
||||
|
||||
@@ -461,12 +466,12 @@ Build properties that may be set:
|
||||
depends="set-net-3.0-runtime-configuration, check-spring-basedir, clean-current-bin-dir, TestInit">
|
||||
<call target="copykeys" if="${project.build.sign}"/>
|
||||
<call target="common.generate-assemblyinfo"/>
|
||||
<property name="build-ems" value="false" />
|
||||
<property name="build-nms" value="false" />
|
||||
<property name="build-quartz" value="false" />
|
||||
<property name="build-msmq" value="false" />
|
||||
<property name="build-msmq-tests" value="false" />
|
||||
<property name="build-velocity" value="false" />
|
||||
<property name="build-ems" value="false" overwrite="true" />
|
||||
<property name="build-nms" value="false" overwrite="true" />
|
||||
<property name="build-quartz" value="false" overwrite="true" />
|
||||
<property name="build-msmq" value="false" overwrite="true" />
|
||||
<property name="build-msmq-tests" value="false" overwrite="true" />
|
||||
<property name="build-velocity" value="false" overwrite="true" />
|
||||
<call target="compile-test" />
|
||||
</target>
|
||||
|
||||
@@ -474,12 +479,12 @@ Build properties that may be set:
|
||||
depends="set-net-3.5-runtime-configuration, check-spring-basedir, clean-current-bin-dir, TestInit">
|
||||
<call target="copykeys" if="${project.build.sign}"/>
|
||||
<call target="common.generate-assemblyinfo"/>
|
||||
<property name="build-ems" value="false" />
|
||||
<property name="build-nms" value="false" />
|
||||
<property name="build-quartz" value="false" />
|
||||
<property name="build-msmq" value="false" />
|
||||
<property name="build-msmq-tests" value="false" />
|
||||
<property name="build-velocity" value="false" />
|
||||
<property name="build-ems" value="false" overwrite="true" />
|
||||
<property name="build-nms" value="false" overwrite="true" />
|
||||
<property name="build-quartz" value="false" overwrite="true" />
|
||||
<property name="build-msmq" value="false" overwrite="true" />
|
||||
<property name="build-msmq-tests" value="false" overwrite="true" />
|
||||
<property name="build-velocity" value="false" overwrite="true" />
|
||||
<call target="compile-test" />
|
||||
</target>
|
||||
|
||||
@@ -487,9 +492,9 @@ Build properties that may be set:
|
||||
depends="set-mono-2.0-runtime-configuration, check-spring-basedir, clean-current-bin-dir, TestInit">
|
||||
<call target="copykeys" if="${project.build.sign}"/>
|
||||
<call target="common.generate-assemblyinfo"/>
|
||||
<property name="build-ems" value="false" />
|
||||
<property name="build-msmq" value="false" />
|
||||
<property name="build-msmq-tests" value="false" />
|
||||
<property name="build-ems" value="false" overwrite="true" />
|
||||
<property name="build-msmq" value="false" overwrite="true" />
|
||||
<property name="build-msmq-tests" value="false" overwrite="true" />
|
||||
<call target="compile-test" />
|
||||
</target>
|
||||
|
||||
@@ -772,16 +777,16 @@ Build properties that may be set:
|
||||
|
||||
|
||||
<target name="package" depends="set-package-configuration" description="Build and Package distribution">
|
||||
|
||||
<property name="project.build.sign" value="true"/>
|
||||
<!--
|
||||
<property name="project.build.sign" value="true" override="false" />
|
||||
<property name="project.build.package" value="true"/>
|
||||
|
||||
-->
|
||||
<call target="clean-current-package-dir"/>
|
||||
|
||||
<property name="nant.target.root.name" value="build"/>
|
||||
|
||||
<call target="set-build-namespaces-release"/>
|
||||
<property name="project.build.sign" value="true"/>
|
||||
<property name="project.build.sign" value="true" overwrite="false" />
|
||||
<property name="project.build.package" value="true"/>
|
||||
|
||||
<call target="build-all-function"/>
|
||||
@@ -808,8 +813,6 @@ Build properties that may be set:
|
||||
<delete dir="./doc/sdk/target" failonerror="false" />
|
||||
|
||||
<exec workingdir="." program="./build-support/tools/ndoc3/NDoc3Console.exe">
|
||||
<!-- arg value="-verbose" /-->
|
||||
<!-- arg value="-documenter=MSDN" /-->
|
||||
<arg value="-project=./doc/sdk/Spring.NET-net-2.0.ndoc" />
|
||||
</exec>
|
||||
|
||||
@@ -836,7 +839,7 @@ Build properties that may be set:
|
||||
|
||||
</target>
|
||||
|
||||
<target name="releasepkg">
|
||||
<target name="package-release">
|
||||
<call target="set-release-build-configuration"/>
|
||||
<call target="package-release-files"/>
|
||||
</target>
|
||||
@@ -869,11 +872,13 @@ Build properties that may be set:
|
||||
|
||||
<target name="build-all-function" description="Build what is in cvs taking into account approrpiate clr versions and root target name">
|
||||
|
||||
|
||||
<!-- net-1.0 dropped since 1.3.0 -->
|
||||
<!-- call target="${nant.target.root.name}-1.0" / -->
|
||||
<call target="${nant.target.root.name}-1.1" />
|
||||
<call target="${nant.target.root.name}-2.0" />
|
||||
<call target="${nant.target.root.name}-3.0" />
|
||||
<call target="${nant.target.root.name}-3.5" />
|
||||
<!-- ignore .NET 3.5 for now -->
|
||||
<!-- call target="${nant.target.root.name}-3.5" / -->
|
||||
|
||||
<!-- ignore Mono 2.0 for now -->
|
||||
<!-- <call target="${nant.target.root.name}-mono-2.0" /> -->
|
||||
@@ -1423,17 +1428,18 @@ Build properties that may be set:
|
||||
</target>
|
||||
<target name="set-build-namespaces-all">
|
||||
<property name="build.allnamespaces" value="true"/>
|
||||
<property name="build-aop" value="true" overwrite="false" />
|
||||
<property name="build-data" value="true" overwrite="false"/>
|
||||
<property name="build-services" value="true" overwrite="false" />
|
||||
<property name="build-testing-nunit" value="true" overwrite="false" />
|
||||
<property name="build-testing-microsoft" value="false" overwrite="false"/>
|
||||
<property name="build-web" value="true" overwrite="false" />
|
||||
<property name="build-nms" value="true" overwrite="false" />
|
||||
<property name="build-ems" value="false" overwrite="false" />
|
||||
<property name="build-quartz" value="true" overwrite="false" />
|
||||
<property name="build-msmq" value="true" overwrite="false" />
|
||||
<property name="build-velocity" value="true" overwrite="false" />
|
||||
<property name="build-aop" value="true" />
|
||||
<property name="build-data" value="true" />
|
||||
<property name="build-services" value="true" />
|
||||
<property name="build-testing-nunit" value="true" />
|
||||
<property name="build-testing-microsoft" value="false" />
|
||||
<property name="build-testing-microsoft" value="${file::exists('lib/net/2.0/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll')}" />
|
||||
<property name="build-web" value="true" />
|
||||
<property name="build-nms" value="true" />
|
||||
<property name="build-ems" value="${file::exists('lib/net/2.0/tibco.ems.dll')}" />
|
||||
<property name="build-quartz" value="true" />
|
||||
<property name="build-msmq" value="true" />
|
||||
<property name="build-velocity" value="true" />
|
||||
<property name="solution.file" value="Spring.Net.sln"/>
|
||||
<fileset id="src.to.copy">
|
||||
<include name="src/**"/>
|
||||
@@ -1464,11 +1470,11 @@ Build properties that may be set:
|
||||
<property name="build-data" value="true"/>
|
||||
<property name="build-services" value="true"/>
|
||||
<property name="build-testing-nunit" value="true"/>
|
||||
<property name="build-testing-microsoft" value="false" overwrite="false"/>
|
||||
<property name="build-testing-microsoft" value="${file::exists('lib/net/2.0/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll')}" />
|
||||
<property name="build-web" value="true"/>
|
||||
<property name="build-examples" value="true"/>
|
||||
<property name="build-nms" value="true" />
|
||||
<property name="build-ems" value="false" overwrite="false" />
|
||||
<property name="build-ems" value="${file::exists('lib/net/2.0/tibco.ems.dll')}" />
|
||||
<property name="build-quartz" value="true" />
|
||||
<property name="build-msmq" value="true" />
|
||||
<property name="build-velocity" value="true" />
|
||||
|
||||
Reference in New Issue
Block a user