【发布时间】:2012-10-19 18:29:12
【问题描述】:
我正在尝试创建一个 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)
【问题讨论】:
标签: apache-flex ant flex4