【发布时间】:2011-01-06 13:11:46
【问题描述】:
我正在尝试将 ANT 与 Flash Builder 4 一起使用来编译和调试。 编译是很容易的部分,但很难让调试器工作。
我想在 Flash Builder 中使用 ANT 调试 SWF 文件,以便断点、控制台跟踪和一切正常工作。
到目前为止我的脚本。将 *.as 构建为 *.swf 并从 bin-debug 移动到 deploy 文件夹。 如何为创建的 SWF 启动 Flash Builder 调试器?
<target name="Compile level 1">
<antcall target="compile flex file">
<param name="file" value="GameOffice"/>
</antcall>
<antcall target="open player">
<param name="file" value="GameOffice.swf"/>
</antcall>
</target>
<target name="compile flex file">
<mxmlc file="${SRC_DIR}/${file}.as" output="${BUILD_DIR}/${file}.swf"
actionscript-file-encoding="UTF-8"
keep-generated-actionscript="true"
incremental="true"
static-link-runtime-shared-libraries="true"
show-actionscript-warnings="true"
failonerror="true"
debug="true"
optimize="false">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${FLEX_HOME}/frameworks" />
<compiler.include-libraries dir="${basedir}/libs" append="true">
<include name="HelloThereLibGames.swc" />
<include name="HelloThereLibStructure.swc" />
<include name="HelloThereLibUtils.swc" />
</compiler.include-libraries>
<metadata description="Hello There Production">
<contributor name="Fredrick Bäcker" />
</metadata>
</mxmlc>
<copy todir="${DEPLOY_DIR}" file="${BUILD_DIR}/${file}.swf"/>
</target>
【问题讨论】:
标签: apache-flex debugging ant