Ant and Flex-4 problem, MXMLC.jar not found !
- by Ali
Hi all,
I updated a flex application from flex 3.5 to flex 4.0.
We are using ant for compiling our project and we have a mxmlc task to handle the flex part.
After the upgrade, our mxmlc task broke.
Here is the task definition:
<taskdef resource="flexTasks.tasks">
<classpath>
<pathelement path="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<pathelement path="${FLEX_HOME}/lib/flexTasks.jar"/>
<fileset dir="${FLEX_HOME}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath> </taskdef>
And here is mxmlc task
<mxmlc file="${src}/Main.mxml" output="${build}/main.swf" debug="true"
target-player="10" services="../src/main/webapp/WEB-INF/flex/services-config.xml"
context-root="/" >
<compiler.library-path dir="${lib}">
<include name="*.swc"/>
</compiler.library-path>
<compiler.library-path dir="${FLEX_HOME}/frameworks/libs">
<include name="*.swc"/>
</compiler.library-path>
<compiler.library-path dir="${FLEX_HOME}/frameworks/libs/player/10.0">
<include name="*.swc"/>
</compiler.library-path>
<compiler.library-path dir="${FLEX_HOME}/frameworks/locale">
<include name="**/*"/>
</compiler.library-path>
</mxmlc>
And we are getting:
The class not found in jar file: mxmlc.jar
I checked the ${FLEX_HOME}/lib folder and I can see the mxmlc.jar file there.
I appreciate your comments for resolving this matter,
Thanks,
-A