如何使用ant mxmlc编译器忽略警告

时间:2012-07-17 08:44:57

标签: flex ant mxmlc

我正在使用ant mxmlc任务来构建我的项目。我希望使用ant mxmlc任务忽略使用flex sdk生成的编译器警告。我需要对构建脚本做什么才能忽略这些?

感谢

1 个答案:

答案 0 :(得分:4)

添加warnings =“false”

示例:

<mxmlc file="${SRC_DIR}/MainApplication.mxml" output="${OUTPUT_DIR}/MainApplication.swf' link-report="report.xml" compiler.optimize="true" keep-generated-actionscript="false" warnings="false" debug="false" strict="true" benchmark="true">
相关问题