Apache flex flexant:编译多个模块
我正在尝试使用Ant编译我的项目。 是的。但是我有一些问题。我不知道如何解决Apache flex flexant:编译多个模块,apache-flex,ant,Apache Flex,Ant,我正在尝试使用Ant编译我的项目。 是的。但是我有一些问题。我不知道如何解决 <!-- Compile Modules (S) --> <target name="compileModules" depends="compileBLP"> <record name="${LOG_DIR}/LOG_${CURR_TIME_SUBFIX}${LOG_FILE_TYPE}" append="false" action="start" /> <c
<!-- Compile Modules (S) -->
<target name="compileModules" depends="compileBLP">
<record name="${LOG_DIR}/LOG_${CURR_TIME_SUBFIX}${LOG_FILE_TYPE}" append="false" action="start" />
<cpmdl file="com/dou/pi/views/dm/Module1" />
<cpmdl file="com/dou/pi/views/pim/Module2" />
<record name="${LOG_DIR}/LOG_${CURR_TIME_SUBFIX}${LOG_FILE_TYPE}" action="stop" />
</target>
<!-- Compile Modules (E) -->
<macrodef name="cpmdl">
<attribute name="file" />
<sequential>
<echo>@{file}</echo>
<mxmlc file="${SRC_DIR}/@{file}.mxml" output='${DEPLOY_DIR}/@{file}.swf' optimize="true" debug="false" incremental="false" fork="true">
<compiler.source-path path-element="${SRC_DIR}" />
<source-path path-element="${FLEX_HOME}/frameworks" />
<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
<include name="libs" />
</compiler.library-path>
<compiler.library-path dir="${basedir}" append="true">
<include name="libs" />
<include name="src/assets/swc" />
</compiler.library-path>
<source-path path-element="${SRC_DIR}" />
</mxmlc>
</sequential>
</macrodef>
也许,这不好。
我想,我们可以只加载一次吗
希望你能给我任何建议。
谢谢。这里真的没什么可做的。配置文件的加载由mxmlc而不是ant在内部完成。请记住,每次在ant脚本中调用mxmlc时,它都会启动它的一个新实例,因此每个实例都必须为自己加载配置 这类似于,如果你启动你的网络浏览器,关闭它,然后重新打开它,你最终会加载你的主页两次。环境中没有任何东西可以将页面保存到内存中,以便将其传递给程序的第二次调用
[mxmlc] Loading configuration file C:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in\sdks\4.1.0\frameworks\flex-config.xml
[mxmlc] D:\Projects\BLP\BUILD\DEPLOY\com\dou\pi\views\dm\Module1.swf (1233413 bytes)
[mxmlc] Loading configuration file C:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in\sdks\4.1.0\frameworks\flex-config.xml
[mxmlc] D:\Projects\BLP\BUILD\DEPLOY\com\dou\pi\views\pim\Module2.swf (963045 bytes)