flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1350104 - /incubator/flex/trunk/modules/downloads.xml
Date Thu, 14 Jun 2012 06:48:40 GMT
Author: aharui
Date: Thu Jun 14 06:48:39 2012
New Revision: 1350104

URL: http://svn.apache.org/viewvc?rev=1350104&view=rev
Log:
skip download if file exists

Modified:
    incubator/flex/trunk/modules/downloads.xml

Modified: incubator/flex/trunk/modules/downloads.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/modules/downloads.xml?rev=1350104&r1=1350103&r2=1350104&view=diff
==============================================================================
--- incubator/flex/trunk/modules/downloads.xml (original)
+++ incubator/flex/trunk/modules/downloads.xml Thu Jun 14 06:48:39 2012
@@ -690,9 +690,10 @@
         
         <property name="zipFile" value="flex_sdk_4.6.0.23201B.zip"/>
         <mkdir dir="${download.dir}"/>        
-        <get src="http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/${zipFile}"

-            dest="${download.dir}/${zipFile}"/>
-
+        <available file="${download.dir}/${zipFile}" type="file"
+            property="adobe.flex.sdk.download.exists"/>
+        <antcall target="download-adobe-flex-sdk" />
+        
         <unzip src="${download.dir}/${zipFile}" dest="${download.dir}/${adobe.flex.sdk}">
             <patternset>
                 <include name="license-adobesdk.htm"/>
@@ -706,6 +707,11 @@
         </unzip>
     </target>
     
+    <target name="download-adobe-flex-sdk" unless="adobe.flex.sdk.download.exists" >
+        <get src="http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/${zipFile}"

+            dest="${download.dir}/${zipFile}"/>
+    </target>
+    
     <target name="clean-adobe-flex-sdk">
         <delete dir="${download.dir}/${adobe.flex.sdk}"/>
     </target>



Mime
View raw message