You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2006/10/18 11:40:08 UTC

svn commit: r465187 - /incubator/harmony/enhanced/classlib/trunk/build.xml

Author: hindessm
Date: Wed Oct 18 02:40:06 2006
New Revision: 465187

URL: http://svn.apache.org/viewvc?view=rev&rev=465187
Log:
Adding sha checksum files to the snapshot target.  Will add to federation
build shortly.

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

Modified: incubator/harmony/enhanced/classlib/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/build.xml?view=diff&rev=465187&r1=465186&r2=465187
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/build.xml (original)
+++ incubator/harmony/enhanced/classlib/trunk/build.xml Wed Oct 18 02:40:06 2006
@@ -231,7 +231,8 @@
                 includes="README-snapshot.txt"
                 fullpath="Harmony/README"/>
         </tar>
-        <md5sum file="${deploy.tar}" />
+        <chksum file="${deploy.tar}" />
+        <chksum file="${deploy.tar}" type="sha" />
     </target>
 
     <!-- ================================= 
@@ -260,7 +261,8 @@
                 includes="README-snapshot.txt"
                 fullpath="Harmony/README.txt"/>
         </zip>
-        <md5sum file="${deploy.zip}" />
+        <chksum file="${deploy.zip}" />
+        <chksum file="${deploy.zip}" type="sha" />
     </target>
 
     <target name="check-depends"
@@ -277,13 +279,15 @@
         description="Display the properties that are use in the ant build files"
             />
 
-    <macrodef name="md5sum">
+    <macrodef name="chksum">
         <attribute name="file" />
         <attribute name="type" default="md5" />
         <sequential>
-            <checksum property="@{file}.@{type}" file="@{file}" />
+            <checksum property="@{file}.@{type}" file="@{file}"
+                      algorithm="@{type}" />
             <echo file="@{file}.@{type}"
-                  message="${@{file}.@{type}}  @{file}" />
+                  message="${@{file}.@{type}}  @{file}${line.separator}" />
+            <echo>@{file}.@{type} = ${@{file}.@{type}}</echo>
         </sequential>
     </macrodef>