1 Reply Latest reply on Aug 17, 2015 11:20 PM by Chen Jue

    Additional Compiler Arguments - How to set?

    asafdsadfasddfsas

      In FlexBuilder, go to project properties and navigate to the Flex Compiler. You should see an "Additional Compiler Arguments" field.

      If I build the flex application through Ant How to set the same? Please explain in detail the file where I need to set with an example for setting "-locale en_US".

        • 1. Re: Additional Compiler Arguments - How to set?
          Chen Jue

          in the target field in the build.xml file, such as:

           

            <target name="compile.app">

                   <mxmlc file="${project.src.dir}/a.as"

                       output="${project.release.dir}/a.swf"

                       actionscript-file-encoding="UTF-8"

                       debug="true" fork="true">

                       <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />

                       <source-path path-element="${project.src.dir}" />

                       <external-library-path dir="${FLEX_HOME}/frameworks/libs">   

                           <include name="player/12.1/playerglobal.swc" />            

                           <include name="datavisualization.swc" />

                           <include name="framework.swc" />

                           <include name="rpc.swc" />                

                       </external-library-path>

                       <library-path dir="${project.libs.dir}" append="true">

                           <include name="*.swc" />

                       </library-path>

                       <jvmarg line="${mxmlc.jvm.args}"/>

                      <arg value="-locale"/>

                       <arg value="en_US"/>

                   </mxmlc>

               </target>