If you’re reading this, you’re likely aware that Adobe has released ANT tasks for compiling SWFs, module SWFs, and SWCs. My application has lots of modules and also uses an ANT build, so naturally, I wanted to speed up compile times.
My development laptop has a dual-core CPU and I noticed that one core was unused while running my ANT script. In order to speed up my compile times, I simply added <parallel> tags around compiling my modules. My main swf needs to be compiled first because I need to use its link report for building the other modules. I also had to make sure to set the threadCount property to 2 so it wouldn’t overload my machine trying to compile all the modules at once.
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="NitroAdminFlex" basedir="." default="AIR">
<property name="version.major" value="6"/>
<property name="version.minor" value="0"/>
<property name="version.revision" value="0"/>
<property name="OPTIMIZE" value="true"/>
<property name="DEBUG" value="false"/>
<property name="FLEX_HOME" value="C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.2.0"/>
<property name="flex.mxmlc" location="${FLEX_HOME}/bin/mxmlc.exe" />
<property name="src.dir" value="."/>
<property name="lib.dir" value="../libs"/>
<property name="out.dir" value="../bin-release"/>
<property name="jars.dir" value="../../jars-server"/>
<taskdef name="nitrolm-encrypt" classname="com.simplifiedlogic.nitrolm.LMEncryptAsset" classpath="${jars.dir}/AssetEncrypterX.jar"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<target name="clean" description="Clean the project">
<delete dir="${out.dir}" failonerror="false"/>
</target>
<target name="init" description="initialize the project" depends="clean">
<mkdir dir="${out.dir}"/>
<copy todir="${out.dir}" includeemptydirs="false">
<fileset dir="${basedir}">
<exclude name="**/*.as"/>
<exclude name="**/*.mxml"/>
<exclude name="**/*.xml"/>
<exclude name="**/*.css"/>
<exclude name="**/*.properties"/>
<exclude name="**/*.ser"/>
<exclude name="**/*.vser"/>
<exclude name="**/*.pfx"/>
<exclude name="**/*.txt"/>
<exclude name="**/*.cmd"/>
<include name="**/*"/>
</fileset>
</copy>
</target>
<target name="compile.release" description="Compile swf modules and main swf" depends="init">
<!-- compile main SWF -->
<mxmlc file="NitroAdminFlex.mxml" output="${out.dir}/NitroAdminFlex.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
link-report="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<parallel threadCount="2">
<!-- compile modules -->
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/nav/MainWindowNavigator.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/nav/MainWindowNavigator.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/DefineVariablesModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/DefineVariablesModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/NotificationsModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/NotificationsModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/MessagingModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/MessagingModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageLicensesModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageLicensesModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/UsersModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/UsersModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageVariablesModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageVariablesModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowUnconfirmedModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowUnconfirmedModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowPaidToModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowPaidToModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowDemosModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowDemosModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowLicensesModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowLicensesModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowMsgHistModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowMsgHistModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowSupportModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowSupportModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowUserFilesModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowUserFilesModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/AddEditProductModule.mxml" output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/AddEditProductModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowReportBuilderModule.mxml"
output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowReportBuilderModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/AddEditCompanyModule.mxml"
output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/AddEditCompanyModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowExternalVariablesReportModule.mxml"
output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowExternalVariablesReportModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/PoolPropertiesModule.mxml"
output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/PoolPropertiesModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
<mxmlc file="com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageAdminToolModule.mxml"
output="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageAdminToolModule.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
load-externs="${out.dir}/report.xml"
locale="en_US"
allow-source-path-overlap="true"
configname="air">
<compiler.context-root>/NitroAdminFlex</compiler.context-root>
<source-path path-element="${src.dir}"/>
<source-path path-element="locale/{locale}"/>
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}"/>
</library-path>
<library-path dir="${lib.dir}" append="true">
<include name="*.swc"/>
</library-path>
<library-path dir="../../FlexUtilLibrary/bin" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
</parallel>
</target>
<target name="encrypt" description="Encrypt the various swf modules" depends="compile.release">
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/DefineVariablesModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/NotificationsModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/nav/MainWindowNavigator.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/MessagingModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageLicensesModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/UsersModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageVariablesModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowUnconfirmedModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowPaidToModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowDemosModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowLicensesModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowMsgHistModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowSupportModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowUserFilesModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/AddEditProductModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowReportBuilderModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/AddEditCompanyModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ShowExternalVariablesReportModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/PoolPropertiesModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
<nitrolm-encrypt
filename="${out.dir}/com/simplifiedlogic/nitroadmin/cairngorm/view/screens/ManageAdminToolModule.swf"
product="YOXxycCnrspZhEVOnhYE"
library="LKX_BYkNwSH4yZJosmHEXooO"
keydir="."/>
</target>
<target name="AIR" description="Create the AIR package for our app" depends="encrypt">
<exec executable="${FLEX_HOME}/bin/adt.bat" failonerror="true">
<arg line="-package"/>
<arg line="-storetype pkcs12"/>
<arg line="-keystore ${src.dir}/thawte_codesigning.pfx"/>
<arg line="-storepass 5T00P1d"/>
<arg line="${out.dir}/NitroAdmin.air"/>
<arg line="${src.dir}/NitroAdminFlex-app.xml"/>
<arg line="-C ${out.dir} NitroAdminFlex.swf"/>
<arg line="-C ${out.dir} assets*"/>
<arg line="-C ${out.dir} com*"/>
<arg line="-C ${out.dir} org*"/>
</exec>
</target>
</project>

