5/24/2010 1:46:28 AM
Title:
Compile Multiple flex files
hi
i want to compile multiple flex files using ant tasks
i am new in flex and i used flex 4,blazeds and java
any body help me to give any sample code for to compile multiple flex files using ant tasks
regards
athi
5/24/2010 2:01:07 AM
MXML compiler won't compile more than one MXML at a time, so parallel compilation of multiple MXML files is not possible.
5/24/2010 2:08:30 AM
Use Ant-Contrib task foreach to compile all the MMXL files in a loop.
<target name="flex-compile" description="Build each MXML file">
<foreach target="build-each-mxml" param="file">
<path>
<fileset dir="${flex.src.dir}">
<include name="**/*.mxml"/>
</fileset>
</path>
</foreach>
</target>
<target name="build-each-mxml" description="Builds a mxml file">
<echo>Each File Name: ${file}</echo>
<exec executable="${mxmlc.exe}">
<arg value="${file}" />
</exec>
</target>
5/25/2010 2:25:23 AM
hi
thank for ur help. i used ur code in my build.xml file.
but the error is
Problem: failed to create task or type foreach
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
regards
athi