How to include additional compiler arguments when using mxmlc ant task?
11,473
Solution 1
You should be able to set it as an attribute on the mxmlc task:
<mxmlc services="../services-config.xml"/>
Solution 2
Not that I know of.
You could always use the task with subnodes if you still are unable to find it in the docs.
Example:
<exec executable="${mxmlc.exe}" dir="${basedir}">
<arg line="-source-path '${flex2sdk.locale.dir}'" />
<arg line="-locale en_US" />
</exec>
Solution 3
I was having the same issues with the services attribute not being available for use in the ant tasks so I added the option to fix the problem:
<mxmlc file="path" output="path to output" >
<compiler.services>${path-to-services}</compiler.services>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<compiler.debug>false</compiler.debug>
<compiler.context-root>/PATWeb</compiler.context-root>
</mxmlc>
Author by
eugenio calabrese
Updated on June 04, 2022Comments
-
eugenio calabrese about 2 years
Flex Builder allows additional compiler arguments to be set in the compiler options, under properties. It sets the argument;
-services ".../services-config.xml"
Is there a way to set the same argument when using the ant task mxmlc?
Cheers,
Mike