Author: jgomes Date: Fri Jan 3 17:05:59 2014 New Revision: 1555153 URL: http://svn.apache.org/r1555153 Log: Synchronizing the common build script among all of the projects.
Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml?rev=1555153&r1=1555152&r2=1555153&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml (original) +++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml Fri Jan 3 17:05:59 2014 @@ -41,11 +41,12 @@ <property name="build.skip" value="false" /> <property name="build.skip.release" value="false" unless="${property::exists('build.skip.release')}" /> <property name="download.skip" value="false" unless="${property::exists('download.skip')}"/> + <property name="install.skip" value="false" unless="${property::exists('install.skip')}"/> <property name="compile.skip" value="false" unless="${property::exists('compile.skip')}" /> <property name="current.build.config" value="${if(project.release.type == 'release', 'release', 'debug')}" overwrite="false" /> <property name="current.build.framework" value="${framework::get-target-framework()}" overwrite="false" /> <property name="current.build.defines" value="${build.defines}" /> - <property name="build.framework.strings" value="net-2.0,net-3.5,net-4.0,mono-2.0,netcf-2.0,netcf-3.5" unless="${property::exists('build.framework.strings')}"/> + <property name="build.framework.strings" value="net-2.0,net-3.5,net-4.0,mono-2.0,mono-4.0,netcf-2.0,netcf-3.5" unless="${property::exists('build.framework.strings')}"/> <property name="current.build.framework.assembly.dir" value="${framework::get-assembly-directory(framework::get-target-framework())}" dynamic="true" /> <property name="build.config.strings" value="${if(property::exists('configuration'), configuration, if(build.skip.release == 'true', 'debug', 'debug,release'))}" dynamic="true" /> @@ -205,6 +206,9 @@ <property name="current.build.framework.sign" value="true" /> <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> <!-- Use the .NET 3.5 compiler for improved language features. Still targets same runtime. --> <if test="${framework::exists('net-3.5')}"> <property name="nant.settings.currentframework" value="net-3.5" /> @@ -271,6 +275,18 @@ </if> </target> + <target name="set-mono-4.0-framework-configuration"> + <property name="current.build.framework" value="mono-4.0" /> + <property name="current.build.framework.name" value="Mono 4.0" /> + <property name="current.build.defines" value="${build.defines}MONO,MONO_4_0" dynamic="true" /> + <property name="current.build.framework.sign" value="true" /> + <property name="link.sdkdoc.version" value="SDK_v1_1" /> + <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> + <!-- ============================================================================================ --> <!-- C O M P I L E T A R G E T S --> <!-- ============================================================================================ --> @@ -387,7 +403,7 @@ <target name="install" depends="init, compile-target, conditional-install" description="Install the artifacts into the nant repo" /> - <target name="conditional-install" unless="${build.skip}" + <target name="conditional-install" unless="${build.skip or install.skip}" description="Install the artifacts into the nant repo"> <property name="path" value="${project.group}/${project.name}/${project.version.full}/${current.build.framework}/${current.build.config}" /> <foreach item="File" property="install.filename"> @@ -439,7 +455,7 @@ <property name="repo.task.src" value="${local.repo.vendor.path}/${repo.task.artifact}" /> <copy file="${repo.task.src}" tofile="${lib.task.dest}" if="${file::exists(repo.task.src)}" /> <if test="${not file::exists(lib.task.dest)}"> - <echo message="Required dependent assembly ${repo.task.artifact} from ${vendor.name} for ${current.build.framework.name} is not available. Build skipped." /> + <echo message="Required dependent assembly ${repo.task.artifact} from ${vendor.name} for ${current.build.framework} is not available. Build skipped." /> <property name="build.skip" value="true" /> </if> </foreach> @@ -471,6 +487,7 @@ <exec program="nunit-console" failonerror="true" workingdir="build/${current.build.framework}/${current.build.config}"> <arg value="${NUnit.Projectfile}" /> <arg value="-labels" /> + <arg value="-exclude=Manual,LongRunning" /> <arg value="-xml=Nunit.TestOutput.xml" /> </exec> </if>