Hi,
I've tried to solve it by googling a lot and trying different parameters,
but no luck..
I manage some Flex Apps and for most of them I've created ant jobs to
compile/deploy.
The problem in on the main app that have 9 modules, I've created on ant job
that have macrodef's build the modules. Everything works fine on main app
and first 7 modules, but on last 2 I've been compiling from FlashBuilder..
So, today I wanted to fix it, but no luck..
My ant job looks like this:
<target name="compile.main" depends="svn-export" description="Build Main">
<sequential>
<build.app file="MyMainApp"/>
<parallel>
<build.module srcdir="editor" file="AlbumEditor" outdir="app/editor"/>
<build.module srcdir="editor" file="CalendarEditor" outdir="app/editor"/>
<build.module srcdir="editor" file="CanvasEditor" outdir="app/editor"/>
<build.module srcdir="editor" file="GiftEditor" outdir="app/editor"/>
<build.module srcdir="editor" file="PhotosEditor" outdir="app/editor"/>
</parallel>
<parallel>
<build.module srcdir="products" file="Products" outdir="app/products"/>
<build.module srcdir="share" file="Share" outdir="app/share"/>
<build.module srcdir="themes" file="ThemeEditor" outdir="app/themes"/>
<build.module srcdir="themes" file="Themes" outdir="app/themes"/>
</parallel>
</sequential>
</target>
<macrodef name="build.app">
<attribute name="file" />
<sequential>
<mxmlc file="${SRC_DIR}/MyMainApp.mxml"
output="${UPDATE_DIR}/${VERSION}/@{file}.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
locale="${LOCALE}" link-report="${SRC_DIR}/link-report.xml">
<load-config filename="${SRC_DIR}/config/build.xml"/>
</mxmlc>
</sequential>
</macrodef>
<macrodef name="build.module">
<attribute name="srcdir" />
<attribute name="file" />
<attribute name="outdir" />
<sequential>
<mxmlc file="${SRC_DIR}/modules/@{srcdir}/@{file}.mxml"
output="${UPDATE_DIR}/${VERSION}/modules/@{outdir}/@{file}.swf"
maxmemory="1048m" fork="true" incremental="false"
load-externs="${SRC_DIR}/link-report.xml">
<load-config filename="${SRC_DIR}/config/build.xml"/>
</mxmlc>
</sequential>
</macrodef>
I've also svn and ftp tasks, but think its no relevant for this.
Am I missing some key parameter?
On FlashBuilder the swz's are copied to bin-release folder, what is the
parameter for that? or do I have to copy manually?
On one test, I've removed the <parallel/> tags to check if is the cause,
but no luck..
Compiling App + 9 modules take about 2m30secs, I wanted to try fcshd.py,
does anyone tried on windows? how to setup?
Kind regards