harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r805810 - /harmony/enhanced/classlib/trunk/modules/archive/build.xml
Date Wed, 19 Aug 2009 14:11:02 GMT
Author: hindessm
Date: Wed Aug 19 14:11:01 2009
New Revision: 805810

URL: http://svn.apache.org/viewvc?rev=805810&view=rev
Log:
Don't unzip zlib on every native build.

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/build.xml

Modified: harmony/enhanced/classlib/trunk/modules/archive/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/build.xml?rev=805810&r1=805809&r2=805810&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/build.xml (original)
+++ harmony/enhanced/classlib/trunk/modules/archive/build.xml Wed Aug 19 14:11:01 2009
@@ -51,16 +51,24 @@
         </copy>
     </target>
     
-    <target name="overlay-oss" depends="-unzip-oss,-ascii2ebcdic-conversion"
+    <target name="overlay-oss"
+            depends="-extract-props,-unzip-oss,-ascii2ebcdic-conversion"
             unless="hy.skip.zlib" />
-        
-    <target name="-unzip-oss">
+
+    <target name="-extract-props">
+        <uptodate property="zlib.uptodate"
+                  srcfile="${zlib.zip}"
+                  targetfile="src/main/native/zlib_dist/README" />
+    </target>
+
+    <target name="-unzip-oss" unless="zlib.uptodate">
         <mkdir dir="src/main/native/zlib_dist" />
         <unzip src="${zlib.zip}" dest="src/main/native/zlib_dist" />
         <chmod dir="src/main/native/zlib_dist" perm="ugo+r" />
+        <touch file="src/main/native/zlib_dist/README" />
     </target>
 
-    <target name="-ascii2ebcdic-conversion" if="is.zos">
+    <target name="-ascii2ebcdic-conversion" if="is.zos" unless="zlib.uptodate">
         <move todir="src/main/native/zlib_dist_ascii">
             <fileset dir="src/main/native/zlib_dist">
                 <include name="**/*" />



Mime
View raw message