Skip to content

Instantly share code, notes, and snippets.

@mattupstate
Created July 6, 2010 00:58
Show Gist options
  • Save mattupstate/464872 to your computer and use it in GitHub Desktop.
Save mattupstate/464872 to your computer and use it in GitHub Desktop.
<!-- Compiles the project into a SWF. -->
<target name="compile-swf" depends="init,clean-bin">
<java jar="${env.FLEX_HOME}/lib/mxmlc.jar" dir="${env.FLEX_HOME}/frameworks" fork="true" failonerror="true">
<arg value="${debug.compile.target}" />
<arg value="-output=${debug.compile.output}" />
<arg value="-source-path=${src.dir}" />
<arg value="-library-path+=${lib.dir}" />
<arg value="-static-link-runtime-shared-libraries=true" />
<arg value="-incremental=true" />
<arg value="-verbose-stacktraces=true" />
<arg value="-headless-server=true" />
</java>
</target>
<!-- Compiles the unit tests into a SWF. -->
<target name="compile-test" depends="init,clean-test">
<java jar="${env.FLEX_HOME}/lib/mxmlc.jar" dir="${env.FLEX_HOME}/frameworks" fork="true" failonerror="true">
<arg value="${test.compile.target}" />
<arg value="-output=${test.compile.output}" />
<arg value="-source-path=${src.dir}" />
<arg value="-source-path+=${test.src.dir}" />
<arg value="-library-path+=${lib.dir}" />
<arg value="-library-path+=${test.lib.dir}" />
<arg value="-static-link-runtime-shared-libraries=true" />
<arg value="-incremental=true" />
<arg value="-verbose-stacktraces=true" />
<arg value="-headless-server=true" />
</java>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment