ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r669165 - /ant/ivy/ivyde/trunk/build.xml
Date Wed, 18 Jun 2008 13:24:20 GMT
Author: hibou
Date: Wed Jun 18 06:24:20 2008
New Revision: 669165

URL: http://svn.apache.org/viewvc?rev=669165&view=rev
Log:
Add an ant task to verify the md5 and sha check sums

Modified:
    ant/ivy/ivyde/trunk/build.xml

Modified: ant/ivy/ivyde/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=669165&r1=669164&r2=669165&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Wed Jun 18 06:24:20 2008
@@ -184,7 +184,7 @@
     </target>
 
     <target name="checksum" description="Compute the checksum for every artifact to distribute">
-        <checksum algorithm="MD5" fileext=".md5">
+        <checksum algorithm="MD5" fileext=".md5" format="MD5SUM">
             <fileset dir="${dist.dir}">
                 <include name="updatesite/plugins/org.apache.ivy*.jar" />
                 <include name="updatesite/plugins/org.apache.ivy*.jar.pack.gz" />
@@ -194,7 +194,7 @@
                 <include name="apache-ivyde-sources-*.zip" />
             </fileset>
         </checksum>
-        <checksum algorithm="SHA" fileext=".sha">
+        <checksum algorithm="SHA" fileext=".sha" format="MD5SUM">
             <fileset dir="${dist.dir}">
                 <include name="updatesite/plugins/org.apache.ivy*.jar" />
                 <include name="updatesite/plugins/org.apache.ivy*.jar.pack.gz" />
@@ -236,4 +236,38 @@
         <delete dir="work-ivy" />
     </target>
 
+    <target name="verify">
+        <checksum algorithm="MD5" fileext=".md5" format="MD5SUM" verifyproperty="checksum.md5.ok"
>
+            <fileset dir="${dist.dir}">
+                <include name="updatesite/plugins/org.apache.ivy*.jar" />
+                <include name="updatesite/plugins/org.apache.ivy*.jar.pack.gz" />
+                <include name="updatesite/features/org.apache.ivy*.jar" />
+                <include name="updatesite/features/org.apache.ivy*.jar.pack.gz" />
+                <include name="org.apache.ivyde.feature-*.zip" />
+                <include name="apache-ivyde-sources-*.zip" />
+            </fileset>
+        </checksum>
+        <fail message="MD5 Checksum verify failed !">
+            <condition>
+                <isfalse value="${checksum.md5.ok}"/>
+            </condition>
+        </fail>
+        <echo message="MD5 Checksum verify passed successfully" />
+        <checksum algorithm="SHA" fileext=".sha" format="MD5SUM" verifyproperty="checksum.sha.ok"
>
+            <fileset dir="${dist.dir}">
+                <include name="updatesite/plugins/org.apache.ivy*.jar" />
+                <include name="updatesite/plugins/org.apache.ivy*.jar.pack.gz" />
+                <include name="updatesite/features/org.apache.ivy*.jar" />
+                <include name="updatesite/features/org.apache.ivy*.jar.pack.gz" />
+                <include name="org.apache.ivyde.feature-*.zip" />
+                <include name="apache-ivyde-sources-*.zip" />
+            </fileset>
+        </checksum>
+        <fail message="SHA Checksum verify failed !">
+            <condition>
+                <isfalse value="${checksum.sha.ok}"/>
+            </condition>
+        </fail>
+        <echo message="SHA Checksum verify passed successfully" />
+    </target>
 </project>



Mime
View raw message