我认为使用ant build脚本将是最简单的解决方案.Eclipse支持ant build,因此您可以在eclipse中运行ant命令.
你可以像这样解决你的问题.
xml会是这样的:
资源#1:
<resources>
<string name="target">dev</string>
</resources>
Run Code Online (Sandbox Code Playgroud)
资源#2:
<resources>
<string name="target">staging</string>
</resources>
Run Code Online (Sandbox Code Playgroud)
和ant脚本会是这样的:
<project>
<target name="build_all">
<copy file="res1.xml" to="res/values/target.xml"/>
<ant antfile="build.xml" target="debug"/>
<copy file="res2.xml" to="res/values/target.xml"/>
<ant antfile="build.xml" target="debug"/>
</target>
</project>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6797 次 |
| 最近记录: |