activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r644778 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml
Date Fri, 04 Apr 2008 17:11:41 GMT
Author: jgomes
Date: Fri Apr  4 10:11:37 2008
New Revision: 644778

URL: http://svn.apache.org/viewvc?rev=644778&view=rev
Log:
Add support for .NET Framework 1.1 and 3.5.

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml?rev=644778&r1=644777&r2=644778&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml Fri Apr  4 10:11:37
2008
@@ -109,7 +109,67 @@
     <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>
+
+    <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 +219,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 +286,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 +293,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 +305,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 +446,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 +458,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 +487,6 @@
         <call target="repo-install"/>
       </do>
     </foreach>
-
   </target>
 
   <!-- ============================================================================================
-->
@@ -484,12 +494,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 +510,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 +596,4 @@
     </ndoc>
   </target>
 
-</project>
\ No newline at end of file
+</project>



Mime
View raw message