harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r520811 - /harmony/enhanced/buildtest/trunk/modules/classlib-drlvm-iterative/build.xml
Date Wed, 21 Mar 2007 09:03:15 GMT
Author: smishura
Date: Wed Mar 21 02:03:14 2007
New Revision: 520811

URL: http://svn.apache.org/viewvc?view=rev&rev=520811
Log:
Adjust build file for classlib-drlvm-iterative project to the current build structure (i.e.
add targets -setup, -gen-config)

Modified:
    harmony/enhanced/buildtest/trunk/modules/classlib-drlvm-iterative/build.xml

Modified: harmony/enhanced/buildtest/trunk/modules/classlib-drlvm-iterative/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/classlib-drlvm-iterative/build.xml?view=diff&rev=520811&r1=520810&r2=520811
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/classlib-drlvm-iterative/build.xml (original)
+++ harmony/enhanced/buildtest/trunk/modules/classlib-drlvm-iterative/build.xml Wed Mar 21
02:03:14 2007
@@ -16,53 +16,51 @@
      limitations under the License. 
 -->
 
-<project name="HUT-iterative" default="default" basedir=".">
-	
+<project name="classlib-drlvm-iterative" default="gen-config" basedir=".">
+
     <description>
 		CI/built/test system for Apache Harmony
 		http://incubator.apache.org/harmony
     </description>
 
-	<!--The cc.property file contains the nameand values of properties-->
-	<property file="cc.properties" />
+    <!--The cc.property file contains the name and values of properties-->
+    <property file="cc.properties" />
+
+    <import file="../../properties.xml" />
+
+    <target name="-setup" description="copy config file and scripts to target dir">
+        <subant target="setup" buildpath="../drlvm" />
+
+        <copy file="HUT_iterative_run.bat" tofile="${target.dir}/HUT_iterative/HUT_iterative_run.bat"
overwrite="true" />
+        <copy file="HUT_iterative_run.sh" tofile="${target.dir}/HUT_iterative/HUT_iterative_run.sh"
overwrite="true" />
+        <copy file="modulesList" tofile="${target.dir}/HUT_iterative/modulesList" overwrite="true"
/>
+    </target>
 
-	<echo file="${target.dir}/cc.properties" append="true">
+    <target name="-gen-config" depends="-gen-config-win,-gen-config-other">
+        <subant target="gen-config" buildpath="../drlvm" />
+
+        <process-project-template />
+
+        <echo file="${propertyfile}" append="true">
 HUT_iterative_timeout=${HUT_iterative_cycle_timeout}
 HUT_iterations=${HUT_iterative_repetitions}
 HUT_forkmode=${HUT_iterative_forkmode}
 osdetailed=${os_detailed}
 fs=${file.separator}
 
-	</echo>
-
-	<!-- ==========================================
-	       Kick off CC
-	     ========================================== -->
-	<target name="default" description="Start classlib unit tests iterative run" >
-	</target>
-		
-	<!-- ==========================================
-	     setup - config iterative classlib tests run
-	     ========================================== -->
-	<target name="setup" description="copy config file and scripts to target dir"  depends="win,unix">
-		
-		<copy file="config/config-HUT_iterative.xml" tofile="${target.dir}/config.xml" overwrite="true"
/>
-		<copy file="HUT_iterative_run.bat" tofile="${target.dir}/HUT_iterative/HUT_iterative_run.bat"
overwrite="true" />		
-		<copy file="HUT_iterative_run.sh" tofile="${target.dir}/HUT_iterative/HUT_iterative_run.sh"
overwrite="true" />		
-		<copy file="modulesList" tofile="${target.dir}/HUT_iterative/modulesList" overwrite="true"
/>		
-
-	</target>
+    	</echo>
+    </target>
 
-	<target name="win" if="is.windows">
-		<echo file="${target.dir}/cc.properties" append="true">
+    <target name="-gen-config-win" if="is.windows">
+        <echo file="${propertyfile}" append="true">
 cmd_HUT_iterative=HUT_iterative_run.bat
 </echo>
-	</target>
+    </target>
 
-	<target name="unix" if="is.unix">
-		<echo file="${target.dir}/cc.properties" append="true">
+    <target name="-gen-config-other" unless="is.windows">
+        <echo file="${propertyfile}" append="true">
 cmd_HUT_iterative=HUT_iterative_run.sh
 </echo>
-	</target>
+    </target>
 
-</project> 
+</project>



Mime
View raw message