Author: jgomes
Date: Fri Apr 4 10:47:42 2008
New Revision: 644786
URL: http://svn.apache.org/viewvc?rev=644786&view=rev
Log:
Add support for .NET Framework 1.1 and 3.5.
Add support to skip unsupported platform builds.
Skip building Mono and Compact Framework targets, since MSMQ is not supported
on those platforms.
Modified:
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/CommonAssemblyInfo.cs
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/CommonAssemblyInfo.cs
Modified: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml?rev=644786&r1=644785&r2=644786&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml Fri Apr 4
10:47:42 2008
@@ -109,7 +109,75 @@
<copy file="${repo.task.src}" tofile="${repo.task.dest}"/>
</target>
-<!-- Helper targets used to enable build configurations -->
+ <target name="release-init" description="Initializes release build
properties">
+ <property name="snk.file" value="${basedir}/activemq-dotnet.snk" />
+ <if test="${not file::exists(snk.file)}">
+ <if test="${build.noskip}">
+ <fail message="Release key file not found. You can generate a key file by
running 'sn -k ${snk.file}'." />
+ </if>
+ <if test="${not(build.noskip)}">
+ <echo message="Release key file not found. You can generate a key file
by running 'sn -k ${snk.file}'." />
+ <echo message="The Release build will be skipped." />
+ <property name="build.skip.release" value="true"/>
+ </if>
+ </if>
+ <if test="${file::exists(snk.file)}">
+ <property name="build.skip.release" value="false" />
+ </if>
+ </target>
+
+ <target name="init" description="Initializes build properties">
+ <!-- enabled the release or debug configuration -->
+ <call target="set-${current.build.config}-configuration"/>
+
+ <!-- Check to see if our build setup for the target framework -->
+ <if
test="${not(target::exists('set-'+current.build.framework+'-framework-configuration'))}">
+ <fail message="The '${current.build.framework}' framework is not
supported by this version of ActiveMQ .NET" />
+ </if>
+ <call target="set-${current.build.framework}-framework-configuration" />
+
+ <!-- Check to see current platform supports the target framework -->
+ <if test="${framework::exists(current.build.framework)}">
+ <!-- Make sure that the activemq-dotnet.snk exists for release builds
-->
+ <if test="${current.build.config.release}">
+ <call target="release-init"/>
+ <property name="build.skip" value="${build.skip.release}" />
+ </if>
+ <if test="${not current.build.config.release}">
+ <property name="build.skip" value="false" />
+ </if>
+ </if>
+ <if test="${not framework::exists(current.build.framework)}">
+ <if test="${build.noskip}">
+ <fail message="${current.build.framework.name} is not available." />
+ </if>
+ <if test="${not(build.noskip)}">
+ <echo message="${current.build.framework.name} is not available.
Build skipped." />
+ <property name="build.skip" value="true"/>
+ </if>
+ </if>
+
+ <!-- Check to see if we should skip this build framework. -->
+ <if test="${not(build.skip)}">
+ <if test="${property::exists('build.'+current.build.framework+'.skip')}">
+ <property name="build.skip" value="true"/>
+ <echo message="The '${current.build.framework}' framework is not
supported by this version of ActiveMQ .NET" />
+ </if>
+ </if>
+
+ <if test="${not(build.skip)}">
+ <property name="current.build.keysign"
value="${current.build.config=='release' and current.build.framework.sign}"/>
+ <echo message="Doing ${if(current.build.keysign,'a signed','an
unsigned')} ${current.build.config} build for the
${current.build.framework.name} framework" />
+ <property name="build.bin.dir"
value="${basedir}/build/${nant.settings.currentframework}/${current.build.config}"
/>
+ <mkdir dir="${build.bin.dir}"/>
+ <call target="dependency-init"/>
+ </if>
+ </target>
+
+ <!--
============================================================================================
-->
+ <!-- C O N F I G U R A T I O N T A R G E T S
-->
+ <!--
============================================================================================
-->
+
<target name="set-noskip-configuration" description="Disable skiping builds">
<property name="project.noskip" value="true" />
</target>
@@ -159,7 +227,19 @@
<property name="current.build.framework.name" value=".NET 2.0"/>
<property name="current.build.defines" value="${build.defines}NET,NET_2_0"
dynamic="true" />
<property name="current.build.framework.sign" value="true"/>
- <property name="link.sdkdoc.version" value="SDK_v1_1" />
+ <property name="link.sdkdoc.version" value="SDK_v2_0" />
+ <property name="link.sdkdoc.web" value="true" />
+ <if test="${framework::exists(current.build.framework)}">
+ <property name="nant.settings.currentframework"
value="${current.build.framework}" />
+ </if>
+ </target>
+
+ <target name="set-net-3.5-framework-configuration">
+ <property name="current.build.framework" value="net-3.5" />
+ <property name="current.build.framework.name" value=".NET 3.5"/>
+ <property name="current.build.defines" value="${build.defines}NET,NET_3_5"
dynamic="true" />
+ <property name="current.build.framework.sign" value="true"/>
+ <property name="link.sdkdoc.version" value="SDK_v6_0a" />
<property name="link.sdkdoc.web" value="true" />
<if test="${framework::exists(current.build.framework)}">
<property name="nant.settings.currentframework"
value="${current.build.framework}" />
@@ -214,75 +294,6 @@
</if>
</target>
- <target name="set-sscli-1.0-framework-configuration">
- <property name="current.build.framework" value="sscli-1.0" />
- <property name="current.build.framework.name" value="sscli 1.0"/>
- <property name="current.build.defines"
value="${build.defines}SSCLI,SSCLI_1_0" dynamic="true" />
- <property name="current.build.framework.sign" value="false" />
- <property name="link.sdkdoc.version" value="SDK_v1_0" />
- <property name="link.sdkdoc.web" value="true" />
- <if test="${framework::exists(current.build.framework)}">
- <property name="nant.settings.currentframework"
value="${current.build.framework}" />
- </if>
- </target>
-
- <target name="release-init" description="Initializes release build
properties">
- <property name="snk.file" value="${basedir}/activemq-dotnet.snk" />
- <if test="${not file::exists(snk.file)}">
- <if test="${build.noskip}">
- <fail message="Release key file not found. You can generate a key file by
running 'sn -k ${snk.file}'." />
- </if>
- <if test="${not(build.noskip)}">
- <echo message="Release key file not found. You can generate a key file
by running 'sn -k ${snk.file}'." />
- <echo message="The Release build will be skipped." />
- <property name="build.skip.release" value="true"/>
- </if>
- </if>
- <if test="${file::exists(snk.file)}">
- <property name="build.skip.release" value="false" />
- </if>
- </target>
-
- <target name="init" description="Initializes build properties">
- <!-- enabled the release or debug configuration -->
- <call target="set-${current.build.config}-configuration"/>
-
- <!-- Check to see if our build setup for the target framework -->
- <if
test="${not(target::exists('set-'+current.build.framework+'-framework-configuration'))}">
- <fail message="The '${current.build.framework}' framework is not
supported by this version of ActiveMQ .NET" />
- </if>
- <call target="set-${current.build.framework}-framework-configuration" />
-
- <!-- Check to see current platform supports the target framework -->
- <if test="${framework::exists(current.build.framework)}">
- <!-- Make sure that the activemq-dotnet.snk exists for release builds
-->
- <if test="${current.build.config.release}">
- <call target="release-init"/>
- <property name="build.skip" value="${build.skip.release}" />
- </if>
- <if test="${not current.build.config.release}">
- <property name="build.skip" value="false" />
- </if>
- </if>
- <if test="${not framework::exists(current.build.framework)}">
- <if test="${build.noskip}">
- <fail message="${current.build.framework.name} is not available." />
- </if>
- <if test="${not(build.noskip)}">
- <echo message="${current.build.framework.name} is not available. Build
skipped." />
- <property name="build.skip" value="true"/>
- </if>
- </if>
-
- <if test="${not(build.skip)}">
- <property name="current.build.keysign"
value="${current.build.config=='release' and current.build.framework.sign}"/>
- <echo message="Doing ${if(current.build.keysign,'a signed','an
unsigned')} ${current.build.config} build for the
${current.build.framework.name} framework" />
- <property name="build.bin.dir"
value="${basedir}/build/${nant.settings.currentframework}/${current.build.config}"
/>
- <mkdir dir="${build.bin.dir}"/>
- <call target="dependency-init"/>
- </if>
- </target>
-
<!--
============================================================================================
-->
<!-- C O M P I L E T A R G E T S
-->
<!--
============================================================================================
-->
@@ -290,7 +301,9 @@
<echo message="Compiling all build configurations for all runtime
configurations." />
<call target="set-debug-configuration" />
<call target="set-net-1.0-framework-configuration" /><call
target="conditional-compile" />
+ <call target="set-net-1.1-framework-configuration" /><call
target="conditional-compile" />
<call target="set-net-2.0-framework-configuration" /><call
target="conditional-compile" />
+ <call target="set-net-3.5-framework-configuration" /><call
target="conditional-compile" />
<call target="set-mono-1.0-framework-configuration" /><call
target="conditional-compile" />
<call target="set-mono-2.0-framework-configuration" /><call
target="conditional-compile" />
<call target="set-netcf-1.0-framework-configuration"/><call
target="conditional-compile" />
@@ -300,7 +313,9 @@
<if test="${not build.skip.release}">
<call target="set-release-configuration" />
<call target="set-net-1.0-framework-configuration" /><call
target="conditional-compile" />
+ <call target="set-net-1.1-framework-configuration" /><call
target="conditional-compile" />
<call target="set-net-2.0-framework-configuration" /><call
target="conditional-compile" />
+ <call target="set-net-3.5-framework-configuration" /><call
target="conditional-compile" />
<call target="set-mono-1.0-framework-configuration" /><call
target="conditional-compile" />
<call target="set-mono-2.0-framework-configuration" /><call
target="conditional-compile" />
<call target="set-netcf-1.0-framework-configuration"/><call
target="conditional-compile" />
@@ -439,7 +454,9 @@
<echo message="Installing all build configurations for all runtime
configurations." />
<call target="set-debug-configuration" />
<call target="set-net-1.0-framework-configuration" /><call
target="conditional-install" />
+ <call target="set-net-1.1-framework-configuration" /><call
target="conditional-install" />
<call target="set-net-2.0-framework-configuration" /><call
target="conditional-install" />
+ <call target="set-net-3.5-framework-configuration" /><call
target="conditional-install" />
<call target="set-mono-1.0-framework-configuration" /><call
target="conditional-install" />
<call target="set-mono-2.0-framework-configuration" /><call
target="conditional-install" />
<call target="set-netcf-1.0-framework-configuration"/><call
target="conditional-install" />
@@ -449,7 +466,9 @@
<if test="${not build.skip.release}">
<call target="set-release-configuration" />
<call target="set-net-1.0-framework-configuration" /><call
target="conditional-install" />
+ <call target="set-net-1.1-framework-configuration" /><call
target="conditional-install" />
<call target="set-net-2.0-framework-configuration" /><call
target="conditional-install" />
+ <call target="set-net-3.5-framework-configuration" /><call
target="conditional-install" />
<call target="set-mono-1.0-framework-configuration" /><call
target="conditional-install" />
<call target="set-mono-2.0-framework-configuration" /><call
target="conditional-install" />
<call target="set-netcf-1.0-framework-configuration"/><call
target="conditional-install" />
@@ -476,7 +495,6 @@
<call target="repo-install"/>
</do>
</foreach>
-
</target>
<!--
============================================================================================
-->
@@ -484,12 +502,13 @@
<!--
============================================================================================
-->
<target name="deploy-all" depends="release-init" description="Deploy all
build configurations for all runtime configurations">
-
<echo message="Deploying all build configurations for all runtime
configurations." />
<call target="set-debug-configuration" />
<call target="set-net-1.0-framework-configuration" /><call
target="conditional-deploy" />
+ <call target="set-net-1.1-framework-configuration" /><call
target="conditional-deploy" />
<call target="set-net-2.0-framework-configuration" /><call
target="conditional-deploy" />
+ <call target="set-net-3.5-framework-configuration" /><call
target="conditional-deploy" />
<call target="set-mono-1.0-framework-configuration" /><call
target="conditional-deploy" />
<call target="set-mono-2.0-framework-configuration" /><call
target="conditional-deploy" />
<call target="set-netcf-1.0-framework-configuration"/><call
target="conditional-deploy" />
@@ -499,7 +518,9 @@
<if test="${not build.skip.release}">
<call target="set-release-configuration" />
<call target="set-net-1.0-framework-configuration" /><call
target="conditional-deploy" />
+ <call target="set-net-1.1-framework-configuration" /><call
target="conditional-deploy" />
<call target="set-net-2.0-framework-configuration" /><call
target="conditional-deploy" />
+ <call target="set-net-3.5-framework-configuration" /><call
target="conditional-deploy" />
<call target="set-mono-1.0-framework-configuration" /><call
target="conditional-deploy" />
<call target="set-mono-2.0-framework-configuration" /><call
target="conditional-deploy" />
<call target="set-netcf-1.0-framework-configuration"/><call
target="conditional-deploy" />
@@ -583,4 +604,4 @@
</ndoc>
</target>
-</project>
\ No newline at end of file
+</project>
Modified: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build?rev=644786&r1=644785&r2=644786&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build (original)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build Fri Apr 4
10:47:42 2008
@@ -41,7 +41,13 @@
<property name="Apache.NMS.Test.dll"
value="${basedir}/vendor/Apache.NMS/build/${current.build.framework}/${current.build.config}/Apache.NMS.Test.dll"
dynamic="true"/>
<property name="Apache.NMS.Test.pdb"
value="${basedir}/vendor/Apache.NMS/build/${current.build.framework}/${current.build.config}/Apache.NMS.Test.pdb"
dynamic="true"/>
<property name="Apache.NMS.Test.xml"
value="${basedir}/vendor/Apache.NMS/build/${current.build.framework}/${current.build.config}/Apache.NMS.Test.xml"
dynamic="true"/>
-
+
+ <!-- Skip certain frameworks, since MSMQ is not supported on those
platforms. -->
+ <property name="build.netcf-1.0.skip" value="true"/>
+ <property name="build.netcf-2.0.skip" value="true"/>
+ <property name="build.mono-1.0.skip" value="true"/>
+ <property name="build.mono-2.0.skip" value="true"/>
+
<target name="vendor-init" description="Initializes the vendor libraries.">
<!-- The following does a poor man's maven style dependency install to the
local repo -->
<property name="repo.task.artifact" value="${nunit.dll}"/>
Modified:
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/CommonAssemblyInfo.cs
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/CommonAssemblyInfo.cs?rev=644786&r1=644785&r2=644786&view=diff
==============================================================================
---
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/CommonAssemblyInfo.cs
(original)
+++
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/main/csharp/CommonAssemblyInfo.cs
Fri Apr 4 10:47:42 2008
@@ -5,7 +5,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:2.0.50727.832
+// Runtime Version:2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Modified:
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/CommonAssemblyInfo.cs
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/CommonAssemblyInfo.cs?rev=644786&r1=644785&r2=644786&view=diff
==============================================================================
---
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/CommonAssemblyInfo.cs
(original)
+++
activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/src/test/csharp/CommonAssemblyInfo.cs
Fri Apr 4 10:47:42 2008
@@ -5,7 +5,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:2.0.50727.832
+// Runtime Version:2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.