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 <[email protected]> Authored: Mon Dec 28 21:26:56 2015 -0800 Committer: Alex Harui <[email protected]> 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>
