Skip to content

Instantly share code, notes, and snippets.

@awd
Created August 16, 2010 20:04
Show Gist options
  • Select an option

  • Save awd/527633 to your computer and use it in GitHub Desktop.

Select an option

Save awd/527633 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!-- build.xml -->
<project name="Flex Ant Tasks Build Script" basedir="." default="compile_modules">
<taskdef resource="flexTasks.tasks" classpath="${basedir}/vendor/flex/ant/lib/flexTasks.jar" />
<property name="FLEX_HOME" value="${basedir}/vendor/flex"/>
<property name="APP_ROOT" value="${basedir}/app/flex"/>
<property name="DEPLOY_DIR" value="${basedir}/public/bin-release" />
<property name="DEBUG" value="false" />
<property name="OPTIMIZE" value="true" />
<!-- delete and create the DEPLOY dir again -->
<target name="init">
<delete dir="${DEPLOY_DIR}" />
<mkdir dir="${DEPLOY_DIR}" />
</target>
<!-- Build and output the Woople.swf-->
<target name="compile_woople" depends="init">
<mxmlc
file="${APP_ROOT}/Woople.mxml"
output="${DEPLOY_DIR}/Woople.swf"
link-report="${DEPLOY_DIR}/report.xml"
actionscript-file-encoding="UTF-8"
debug="${DEBUG}"
optimize="${OPTIMIZE}">
<load-config filename="config/flex-config.xml"/>
</mxmlc>
</target>
<target name="compile_modules" depends="compile_woople">
<mxmlc
file="${APP_ROOT}/com/woople/admin/Admin.mxml"
output="${DEPLOY_DIR}/com/woople/admin/Admin.swf"
load-externs="${DEPLOY_DIR}/report.xml"
actionscript-file-encoding="UTF-8"
debug="${DEBUG}"
optimize="${OPTIMIZE}">
<load-config filename="config/flex-config.xml"/>
</mxmlc>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment