使用 RSL 和 ANT 构建 Flex 项目 [英] Building Flex Project with RSLs and ANT
本文介绍了使用 RSL 和 ANT 构建 Flex 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能给我一个代码示例,说明如何使用框架 RSL 使用 ANT 构建 flex 项目?
Can someone give me a code example of how to build a flex project with ANT using framework RSL's?
这是我目前使用的,但生成的 SWF 文件太大了;
This is what im currently using but the file SWF generated is way to big;
<target name="main">
<mxmlc
file="${SRC_DIR}/myApp.mxml"
output="${DEPLOY_DIR}/myApp.swf"
actionscript-file-encoding="UTF-8"
keep-generated-actionscript="true"
incremental="true">
<!-- Get default compiler options. -->
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<!-- List of path elements that form the roots of ActionScript
class hierarchies. -->
<source-path path-element="${FLEX_HOME}/frameworks"/>
<!-- List of SWC files or directories that contain SWC files. -->
<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
<include name="libs" />
<include name="../bundles/{locale}" />
</compiler.library-path>
</mxmlc>
</target>
谢谢
推荐答案
这是一个很好的描述:http://soenkerohde.com/2008/04/using-the-flash-player-cache-for-the-flex-framework/
这篇关于使用 RSL 和 ANT 构建 Flex 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文