Flex Builder allows you to set additional compiler options in the compiler options in the properties. He sets the argument;
-services ".../services-config.xml"
Is there a way to set the same argument when using the ant mxmlc task?
Greetings
Mike
You can specify it as an attribute in the mxmlc task:
<mxmlc services="../services-config.xml"/>
Not that I knew.
You can always use a task with subnets if you still cannot find it in the documents.
Example:
<exec executable="${mxmlc.exe}" dir="${basedir}"> <arg line="-source-path '${flex2sdk.locale.dir}'" /> <arg line="-locale en_US" /> </exec>
, services ant, :
<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>
:
<target name="compileApp"> <mxmlc file="src/app.mxml" ...other options services="[path to your services-config.xml]" context-root="[path to where your gateway file is]"> ... </target>
mxml... , .
mxmlc, . , Ant . :
mxmlc
<mxmlc file="Main.as" output="bin/app.swf"> <load-config filename="${FLEX_HOME}/flex-config.xml" /> <load-config filename="build/config.xml" /> </mxmlc>
, build/config.xml, , flex-config.xml air-config.xml SDK ( ).
flex-config.xml
air-config.xml
Source: https://habr.com/ru/post/1704196/More articles:Java SWT: how to specify a menu item - javaHow to specify the level of database isolation to be used at a high level? - performanceCan I refer to column names through bind variables in Oracle? - oracleUsing GetHashCode to "protect" user passwords - securityDiv position detection - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1704197/eclipse-maven-plugin-fails-to-create-groovy-maven-archetype-project&usg=ALkJrhhT4hVjPU5g9FEY-uCqE71-0y7tsQCustom implementation of sprintf () - cWhy does Perl complain about simple words in my Win32 :: OLE script? - perlWhere can I find the free open source Delphi multimedia component? - delphiWith a SQL Server 2005 database that is configured as a Push Replication Replication subscriber, can I use the same database as Publisher? - sql-serverAll Articles