0
我有一個標準的android生成構建腳本。我的custom_rules.xml
構建腳本。如何讓我的自定義目標只在運行ant版本時運行?
<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
目標運行時,它們才能運行。