You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2007/05/14 08:32:00 UTC

svn commit: r537729 - /harmony/enhanced/trunk/build.xml

Author: smishura
Date: Sun May 13 23:31:59 2007
New Revision: 537729

URL: http://svn.apache.org/viewvc?view=rev&rev=537729
Log:
Don't download external libraries by default. Add 'auto.fetch' option to be set for dowloading them automatically.

Modified:
    harmony/enhanced/trunk/build.xml

Modified: harmony/enhanced/trunk/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/build.xml?view=diff&rev=537729&r1=537728&r2=537729
==============================================================================
--- harmony/enhanced/trunk/build.xml (original)
+++ harmony/enhanced/trunk/build.xml Sun May 13 23:31:59 2007
@@ -316,12 +316,20 @@
     <!-- ================================================================================ -->
     <!--    build the classlib - ensure depends are up to date an then rebuild            -->
     <!-- ================================================================================ -->
-    <target name="build_classlib">
-        <ant antfile="working_classlib/build.xml" target="fetch-depends" inheritall="false" >
+    <target name="build_classlib" depends="auto_fetch_classlib_libs">
+        <ant antfile="working_classlib/build.xml" target="rebuild" inheritAll="false" >
             <property name="hy.cfg" value="${hy.cfg}"/>
         </ant>
+    </target>
 
-        <ant antfile="working_classlib/build.xml" target="rebuild" inheritAll="false" >
+    <target name="auto_fetch_classlib_libs" if="auto.fetch">
+        <ant target="fetch_classlib_libs">
+            <property name="hy.cfg" value="${hy.cfg}"/>
+        </ant>
+    </target>
+
+    <target name="fetch_classlib_libs">
+        <ant antfile="working_classlib/build.xml" target="fetch-depends" inheritall="false" >
             <property name="hy.cfg" value="${hy.cfg}"/>
         </ant>
     </target>
@@ -331,7 +339,7 @@
     <!-- ================================================================================ -->
     <target name="build_vm" depends="init,build_vm_unix,build_vm_windows"/>
 
-    <target name="build_vm_unix" if="is.unix" depends="build_vm_unix_update, build_vm_unix_clean, build_vm_unix_build">
+    <target name="build_vm_unix" if="is.unix" depends="build_vm_unix_auto_update, build_vm_unix_clean, build_vm_unix_build">
     </target>
 
     <target name="build_vm_unix_update" depends="init" if="is.unix">
@@ -342,6 +350,10 @@
         </exec>
     </target>
 
+    <target name="build_vm_unix_auto_update" if="auto.fetch">
+        <ant target="build_vm_unix_update" inheritall="true"/>
+    </target>
+
     <target name="build_vm_unix_clean"  depends="init" if="is.unix">
         <exec executable="sh" dir="working_vm/build" failonerror="true">
             <arg line="build.sh clean -Dexternal.dep.CLASSLIB.loc=${drlvm.classlib.offset}"/>
@@ -358,28 +370,35 @@
         </exec>
     </target>
 
-    <target name="build_vm_windows" unless="is.unix">
+    <target name="build_vm_windows" depends="build_vm_windows_auto_update" unless="is.unix">
 
         <exec executable="cmd" dir="working_vm/build" failonerror="true">
-            <arg line="/c build.bat update -Dexternal.dep.CLASSLIB.loc=${drlvm.classlib.offset}"/>
+            <arg line="/c build.bat clean -Dexternal.dep.CLASSLIB.loc=${drlvm.classlib.offset}"/>
             <arg line="-Ddeploy.canonical.flag=true"/>
             <env key="BUILD_CFG" value="${hy.cfg}"/>
             <env key="CXX" value="msvc"/>
         </exec>
         <exec executable="cmd" dir="working_vm/build" failonerror="true">
-            <arg line="/c build.bat clean -Dexternal.dep.CLASSLIB.loc=${drlvm.classlib.offset}"/>
+            <arg line="/c build.bat -Dexternal.dep.CLASSLIB.loc=${drlvm.classlib.offset}"/>
             <arg line="-Ddeploy.canonical.flag=true"/>
             <env key="BUILD_CFG" value="${hy.cfg}"/>
             <env key="CXX" value="msvc"/>
         </exec>
+    </target>
+
+    <target name="build_vm_windows_update" unless="is.unix">
         <exec executable="cmd" dir="working_vm/build" failonerror="true">
-            <arg line="/c build.bat -Dexternal.dep.CLASSLIB.loc=${drlvm.classlib.offset}"/>
+            <arg line="/c build.bat update -Dexternal.dep.CLASSLIB.loc=${drlvm.classlib.offset}"/>
             <arg line="-Ddeploy.canonical.flag=true"/>
             <env key="BUILD_CFG" value="${hy.cfg}"/>
             <env key="CXX" value="msvc"/>
         </exec>
     </target>
 
+    <target name="build_vm_windows_auto_update" if="auto.fetch">
+        <ant target="build_vm_windows_update" inheritall="true"/>
+    </target>
+
     <!-- ================================================================================ -->
     <!--    build the common resources - ensure depends are up to date an then rebuild            -->
     <!-- ================================================================================ -->
@@ -392,11 +411,20 @@
     <!-- ================================================================================ -->
     <!--    build the common resources - ensure depends are up to date an then rebuild            -->
     <!-- ================================================================================ -->
-    <target name="build_jdktools">
-        <ant antfile="working_jdktools/build.xml" target="fetch-depends" inheritall="false" >
+    <target name="build_jdktools" depends="auto_fetch_jdktools_libs">
+        <ant antfile="working_jdktools/build.xml" target="rebuild" inheritall="false" >
             <property name="hy.cfg" value="${hy.cfg}"/>
         </ant>
-        <ant antfile="working_jdktools/build.xml" target="rebuild" inheritall="false" >
+    </target>
+
+    <target name="auto_fetch_jdktools_libs" if="auto.fetch">
+        <ant target="fetch_jdktools_libs" inheritall="false" >
+            <property name="hy.cfg" value="${hy.cfg}"/>
+        </ant>
+    </target>
+
+    <target name="fetch_jdktools_libs" if="auto.fetch">
+        <ant antfile="working_jdktools/build.xml" target="fetch-depends" inheritall="false" >
             <property name="hy.cfg" value="${hy.cfg}"/>
         </ant>
     </target>