【发布时间】:2013-07-06 11:58:11
【问题描述】:
我有一个标准的 android 生成的构建脚本。我的custom_rules.xml 构建脚本。
<project>
<target name="-minify" >
// More code here
</target>
<target name="-modify-index-html" >
// More code here
</target>
<target name="-post-compile" depends="-minify"/>
<target name="-post-package" depends="-modify-index-html"/>
</project>
问题是我不希望目标 -minify 和 -modify-index-html 在运行 debug 构建时运行。实际上,它们必须仅在运行 release 目标时运行。
【问题讨论】:
标签: android ant build-tools