ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r416831 - /ant/core/trunk/get-m2.xml
Date Fri, 23 Jun 2006 22:41:47 GMT
Author: mbenson
Date: Fri Jun 23 15:41:47 2006
New Revision: 416831

URL: http://svn.apache.org/viewvc?rev=416831&view=rev
Log:
Only DL if the _artifact_ was not found;
taskdef anytime the _antlib_ wasn't found.

Modified:
    ant/core/trunk/get-m2.xml

Modified: ant/core/trunk/get-m2.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/get-m2.xml?rev=416831&r1=416830&r2=416831&view=diff
==============================================================================
--- ant/core/trunk/get-m2.xml (original)
+++ ant/core/trunk/get-m2.xml Fri Jun 23 15:41:47 2006
@@ -58,9 +58,10 @@
     <condition property="m2.antlib.typefound">
       <typefound name="${m2.antlib.uri}:artifact" />
     </condition>
+    <available property="m2.artifact.found" file="${m2.artifact}" type="file" />
   </target>
 
-  <target name="download-m2" depends="probe-m2" unless="m2.antlib.found">
+  <target name="download-m2" depends="probe-m2" unless="m2.artifact.found">
     <require property="m2.antlib.url" />
     <echo>Downloading to ${m2.dest.dir}</echo>
 
@@ -73,13 +74,13 @@
   </target>
 
   <target name="dont-validate-m2-checksum" depends="probe-m2"
-          if="m2.antlib.found">
+          if="m2.artifact.found">
     <property name="checksum.equal" value="true" />
   </target>
 
   <target name="validate-m2-checksum"
           depends="download-m2,dont-validate-m2-checksum"
-          if="m2.sha1.checksum" unless="m2.antlib.found">
+          if="m2.sha1.checksum" unless="m2.artifact.found">
     <checksum file="${m2.artifact}"
         algorithm="SHA"
         property="${m2.sha1.checksum}"



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message