You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cz...@apache.org on 2013/05/22 15:50:59 UTC

[39/41] git commit: removed mockolate swc and added ant target in download.xml to automatically download those dependencies.

removed mockolate swc and added ant target in download.xml to automatically download those dependencies.


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

Branch: refs/heads/makeFlexUnitApacheReady
Commit: 5b6e5f6dedc21831dccb79d25c0aa67284bfaede
Parents: 8bb4de0
Author: cyrill.zadra <cy...@gmail.com>
Authored: Wed May 22 21:34:05 2013 +0800
Committer: cyrill.zadra <cy...@gmail.com>
Committed: Wed May 22 21:34:05 2013 +0800

----------------------------------------------------------------------
 FlexUnit4Test/downloads.xml            |   34 +++++++++++++++++++++++---
 FlexUnit4Test/libs/mockolate-0.9.5.swc |  Bin 125530 -> 0 bytes
 2 files changed, 30 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/5b6e5f6d/FlexUnit4Test/downloads.xml
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/downloads.xml b/FlexUnit4Test/downloads.xml
index eb214d3..6dd2620 100644
--- a/FlexUnit4Test/downloads.xml
+++ b/FlexUnit4Test/downloads.xml
@@ -34,8 +34,9 @@
 	       
 	       Licenses:
 	       	fluint (1.2)  - MIT
-            flexunit1lib ()  - ?
-            hamcrest (1.1.3)  - 
+            flexunit1lib ()  - TODO license???
+            hamcrest (1.1.3)  -  TODO license???
+			mockolate (0.9.5) - TODO license???
 	-->
 		     
     <!-- 
@@ -43,7 +44,7 @@
         they are each downloaded only if they don't already exist. 
     -->
     
-	<target name="main" depends="prepare, flexunit1lib-swc, hamcrest-swc, fluint-swc"
+	<target name="main" depends="prepare, flexunit1lib-swc, hamcrest-swc, fluint-swc, mockolate-swc"
 		    description="Downloads all the required thirdparty SWCs"/>
 
     <target name="prepare" >
@@ -87,7 +88,7 @@
     </target>
 	
     <!--
-        Download a zip or gz file, extracts the jar file, and optionally copies the jar
+        Download a zip or gz file, extracts the jar/swc file, and optionally copies the jar/swc
         file to a different location and optinally verifies the checksum.  
         If the checksum fails, this script fails.
 
@@ -235,5 +236,30 @@
 	            <param name="destSwcFile" value="${lib.dir}/fluint-1_2.swc"/>
 	        </antcall>
 	    </target>
+		
+		<!--
+	        mockolate
+	    -->
+	    <target name="mockolate-swc-check" description="Checks if mockolate swc exists.">
+	    	<condition property="mockolate.swc.exists">
+	    	    <and>
+	    	        <available file="${lib.dir}/mockolate-0.9.5.swc"/>
+	    	    </and>
+	        </condition>
+	    </target>
+
+	    <target name="mockolate-swc" depends="mockolate-swc-check" 
+	        unless="mockolate.swc.exists" 
+	        description="Downloads and copies mockolate to the lib directory.">
+	        <echo message="Obtaining lib/mockolate-0.9.5.swc"/>
+	        <antcall target="download-zip">
+	          <param name="srcUrl" value="https://github.com/downloads/drewbourne/mockolate"/>
+	          <param name="zipFile" value="mockolate-0.9.5.zip"/>
+	          <param name="srcJarPath" value="mockolate-0.9.5/mockolate-0.9.5.swc"/>
+	          <param name="md5" value="b73fe1bb5f443993adcf8b274f6a48b2"/>
+	          <param name="destJarFile" value="${lib.dir}/mockolate-0.9.5.swc"/>
+	        </antcall>
+	        <delete dir="${download.dir}/temp/mockolate-0.9.5"/>
+	    </target>
 	
 </project>

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/5b6e5f6d/FlexUnit4Test/libs/mockolate-0.9.5.swc
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/libs/mockolate-0.9.5.swc b/FlexUnit4Test/libs/mockolate-0.9.5.swc
deleted file mode 100644
index aa19cb2..0000000
Binary files a/FlexUnit4Test/libs/mockolate-0.9.5.swc and /dev/null differ