我正在尝试创建一个 Ant 任务来创建发布版本,但它只输出一个 SWF 文件,并且 SWF 文件的大小比正常文件小,并且它不会输出普通 Flash Builder 发布版本中的所有正常文件,例如历史文件夹、项目资产、SDK RSL 等。
<!-- Build and output the Avenue.swf-->
<target name="compileFlex" depends="init,compileLib1,compileLib2">
<mxmlc file="${APP_SRC}/app.mxml" output="output/app.swf">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<include-libraries file="${LIB1_SWC}" append="true"/>
<include-libraries file="${LIB2_SWC}" append="true"/>
</mxmlc>
</target>
它只创建一个 SWF,仅此而已。
这是输出的一部分:
[mxmlc] Required RSLs:
[mxmlc] http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/framework_4.5.1.21489.swz with 1 failover.
[mxmlc] http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz with 1 failover.
[mxmlc] http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/spark_4.5.1.21489.swz with 1 failover.
[mxmlc] http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/sparkskins_4.5.1.21328.swz with 1 failover.
[mxmlc] http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/rpc_4.5.1.21328.swz with 1 failover.
[mxmlc] http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/mx_4.5.1.21489.swz with 1 failover.
[mxmlc] /Users/.../output/app.swf (698490 bytes)