2009-04-08 104 views
0

有人能给我一个如何使用框架RSL来构建使用ANT的flex项目的代码示例吗?使用RSL和ANT构建Flex项目

这是我目前使用的,但生成SWF文件的方式是大;

<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> 

感谢

回答