harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r424564 - /incubator/harmony/enhanced/trunk/build.xml
Date Sat, 22 Jul 2006 11:56:58 GMT
Author: geirm
Date: Sat Jul 22 04:56:58 2006
New Revision: 424564

URL: http://svn.apache.org/viewvc?rev=424564&view=rev
Log:
update - took mark's lovely  md5sum macro from classlib/build.xml

Modified:
    incubator/harmony/enhanced/trunk/build.xml

Modified: incubator/harmony/enhanced/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/trunk/build.xml?rev=424564&r1=424563&r2=424564&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/build.xml (original)
+++ incubator/harmony/enhanced/trunk/build.xml Sat Jul 22 04:56:58 2006
@@ -68,7 +68,7 @@
             </tarfileset>
         </tar>
 
-        <checksum file="${target.dir}/${deploy.hdk.tar}" fileext=".md5"/>
+        <md5sum file="${target.dir}/${deploy.hdk.tar}" fileext=".md5"/>
 
     </target>
 
@@ -89,7 +89,7 @@
             </zipfileset>
         </zip>
 
-        <checksum file="${target.dir}/${deploy.hdk.zip}" fileext=".md5"/>
+        <md5sum file="${target.dir}/${deploy.hdk.zip}" fileext=".md5"/>
     </target>
 
     <!-- ================================================================================
-->
@@ -113,7 +113,7 @@
             </tarfileset>
         </tar>
 
-        <checksum file="${target.dir}/${deploy.jre.tar}" fileext=".md5"/>
+        <md5sum file="${target.dir}/${deploy.jre.tar}" fileext=".md5"/>
 
     </target>
 
@@ -131,7 +131,7 @@
                 <exclude name="bin/eclipse.sh"/>
             </zipfileset>
         </zip>
-        <checksum file="${target.dir}/${deploy.jre.zip}" fileext=".md5"/>
+        <md5sum file="${target.dir}/${deploy.jre.zip}" fileext=".md5"/>
     </target>
 
 
@@ -422,5 +422,18 @@
             </redirector>
         </exec>
     </target>
+
+    <!-- ================================================================================
-->
+    <!-- produces a nicer looking checksum - taken from classlib/build.xml           
    -->
+    <!-- ================================================================================
-->
+    <macrodef name="md5sum">
+        <attribute name="file" />
+        <attribute name="type" default="md5" />
+        <sequential>
+            <checksum property="@{file}.@{type}" file="@{file}" />
+            <echo file="@{file}.@{type}"
+                  message="${@{file}.@{type}}  @{file}" />
+        </sequential>
+    </macrodef>
 
 </project>



Mime
View raw message