flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-flexunit] [refs/heads/develop] - hack another fix for build
Date Tue, 29 Dec 2015 05:27:00 GMT
Repository: flex-flexunit
Updated Branches:
  refs/heads/develop cfbdb00b2 -> a4cfe6184


hack another fix for build


Project: http://git-wip-us.apache.org/repos/asf/flex-flexunit/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-flexunit/commit/a4cfe618
Tree: http://git-wip-us.apache.org/repos/asf/flex-flexunit/tree/a4cfe618
Diff: http://git-wip-us.apache.org/repos/asf/flex-flexunit/diff/a4cfe618

Branch: refs/heads/develop
Commit: a4cfe61845b16bee69429110e485109ea341ed95
Parents: cfbdb00
Author: Alex Harui <aharui@apache.org>
Authored: Mon Dec 28 21:26:56 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Dec 28 21:26:56 2015 -0800

----------------------------------------------------------------------
 FlexUnit4Test/downloads.xml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/a4cfe618/FlexUnit4Test/downloads.xml
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/downloads.xml b/FlexUnit4Test/downloads.xml
index aa3038c..1d1ef3d 100644
--- a/FlexUnit4Test/downloads.xml
+++ b/FlexUnit4Test/downloads.xml
@@ -109,7 +109,9 @@
         
         <mkdir dir="${download.dir}"/>        
     	
-        <get src="${srcUrl}/${zipFile}" dest="${download.dir}/${zipFile}"/>
+        <antcall target="copy-before-get" />
+        
+        <get src="${srcUrl}/${zipFile}" dest="${download.dir}/${zipFile}" skipexisting="true"/>
 
         <condition property="zip.compressed">
             <matches string="${zipFile}" pattern="^*.zip$"/>      
@@ -131,6 +133,16 @@
         <antcall target="copy-downloaded-swc"/>
      </target> 
 	
+    <target name="copy-before-get" depends="copy-exists" if="have-copy">
+        <copy file="${basedir}/../FlexUnit4/libs/hamcrest-as3-flex-1.1.3.swc"
+            tofile="${basedir}/libs/hamcrest-as3-flex-1.1.3.swc" />
+    </target>
+    <target name="copy-exists" >
+        <condition property="have-copy">
+            <available file="${basedir}/../FlexUnit4/libs/hamcrest-as3-flex-1.1.3.swc"
/>
+        </condition>
+    </target>
+    
     <target name="untar-file" unless="zip.compressed" description="Untars zipFile">
         <untar src="${download.dir}/${zipFile}" dest="${download.dir}/temp" compression="gzip"/>

     </target>


Mime
View raw message