Repository: flex-falcon Updated Branches: refs/heads/develop 016a23209 -> 222f2aac7
try to make build more tolerant of flex-asjs failures by copying last succcessful build swcs if flex-asjs didn't build all of its swcs Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/222f2aac Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/222f2aac Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/222f2aac Branch: refs/heads/develop Commit: 222f2aac7d632a055383f0f2bbf57848a3583f21 Parents: 016a232 Author: Alex Harui <[email protected]> Authored: Wed Jun 10 15:39:41 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Wed Jun 10 15:39:41 2015 -0700 ---------------------------------------------------------------------- compiler.jx.tests/build.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/222f2aac/compiler.jx.tests/build.xml ---------------------------------------------------------------------- diff --git a/compiler.jx.tests/build.xml b/compiler.jx.tests/build.xml index 14b9ce2..ed42086 100644 --- a/compiler.jx.tests/build.xml +++ b/compiler.jx.tests/build.xml @@ -97,6 +97,23 @@ <formatter type="xml"/> </junit> </target> + + <target name="copyLastSuccessfulBuild" depends="check_asjs, get_asjs" /> + <target name="check_asjs" > + <available file="${env.ASJS_HOME}/frameworks/libs/HTML.swc" + type="file" + property="asjs.ok" + value="true" /> + </target> + <target name="get_asjs" unless="asjs.ok" > + <get src="http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/lastSuccessfulBuild/artifact/out/apache-flex-flexjs-0.0.3-bin.zip" dest="${compiler.tests}/temp/flexjs.zip"/> + <unzip src="${compiler.tests}/temp/flexjs.zip" dest="${env.ASJS_HOME}"> + <patternset> + <include name="frameworks/libs/*.swc"/> + </patternset> + </unzip> + + </target> <target name="main" depends="unit.tests"/>
