How to include additional compiler arguments when using mxmlc ant task?

Mike picture Mike · Mar 4, 2009 · Viewed 11.4k times · Source

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

Answer

tousdan picture tousdan · Mar 4, 2009

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>