Author: gert
Date: 2007-12-07 06:52:31 -0500 (Fri, 07 Dec 2007)
New Revision: 90908
Modified:
trunk/gert/standalone/bug341938/default.build
Log:
Use common build file.
Modified: trunk/gert/standalone/bug341938/default.build
===================================================================
--- trunk/gert/standalone/bug341938/default.build 2007-12-07 11:50:35 UTC
(rev 90907)
+++ trunk/gert/standalone/bug341938/default.build 2007-12-07 11:52:31 UTC
(rev 90908)
@@ -1,22 +1,8 @@
<project name="bug341938" default="rebuild">
- <target name="mono-2.0">
- <property name="csc.defines"
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
- </target>
+ <include buildfile="../../build/common.build" />
- <target name="moonlight-1.1">
- <property name="csc.defines"
value="NET_1_0,NET_1_1,NET_2_0,NET_2_1,ONLY_2_1,MONO" />
- </target>
+ <property name="frameworks"
value="mono-2.0,moonlight-2.0,net-2.0,silverlight-2.0" />
- <target name="net-2.0">
- <property name="csc.defines"
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
- </target>
-
- <target name="silverlight-1.1">
- <property name="csc.defines"
value="NET_1_0,NET_1_1,NET_2_0,NET_2_1,ONLY_2_1" />
- </target>
-
- <property name="frameworks"
value="mono-2.0,moonlight-1.1,net-2.0,silverlight-1.1" />
-
<target name="clean">
<delete>
<fileset>
@@ -26,21 +12,6 @@
</delete>
</target>
- <target name="build">
- <property name="original.targetframework"
value="${nant.settings.currentframework}" />
-
- <foreach property="framework" item="String" in="${frameworks}"
delim=",">
- <if test="${framework::exists(framework)}">
- <property name="nant.settings.currentframework"
value="${framework}" />
- <call
target="${nant.settings.currentframework}" />
- <call target="run" />
- <call target="clean" />
- </if>
- </foreach>
-
- <property name="nant.settings.currentframework"
value="${original.targetframework}" />
- </target>
-
<target name="compile">
<csc target="exe" define="${csc.defines}" output="test.exe"
warnaserror="true" warninglevel="4">
<sources>
@@ -52,10 +23,8 @@
</csc>
</target>
- <target name="run" depends="compile">
+ <target name="run-test" depends="compile">
<exec program="test.exe" managed="strict" output="out" />
<fail if="${file::exists('out')}" />
</target>
-
- <target name="rebuild" depends="clean, build" />
</project>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches