Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created November 20, 2009 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlindquist/239593 to your computer and use it in GitHub Desktop.
Save johnlindquist/239593 to your computer and use it in GitHub Desktop.
<project name="Hello Ant!" default="Compile SWF">
<target name="Say Hello">
<echo>Hello Ant</echo>
</target>
<property file="build.properties"/>
<taskdef resource="flexTasks.tasks" classpath="${BUILD}/flexTasks.jar"/>
<target name="Compile SWF">
<mxmlc
file="${SOURCE}/AntDemos.mxml"
output="${DEPLOY}/AntDemos.swf"
link-report="${BUILD}/classesToExclude.xml"
>
<load-config filename="${BUILD}/flex-config.xml"/>
</mxmlc>
<buildnumber file="build.number"/>
</target>
<target name="Compile Module">
<mxmlc
file="${SOURCE}/AntDemos.mxml"
output="${BASE_DIR}/modules/dummyModule.swf"
load-externs="${BUILD}/classesToExclude.xml"
>
</mxmlc>
</target>
<target name="Compile SWC">
<compc
output="${LIBS}/dummySWC.swc"
load-externs="${BUILD}/classesToExclude.xml"
>
<include-sources dir="${BASE_DIR}/swcTest" includes="*"/>
</compc>
</target>
<!-- http://opensource.adobe.com/wiki/display/flexsdk/ASDoc+in+MXML -->
<target name="Compile ASDocs">
<asdoc output="${DOCS}">
<doc-sources path-element="${SOURCE}"/>
</asdoc>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment