我有 3 个 xml 文件build.xml, build_1.xml, build_2.xml。这些build_1.xml, build_2.xml文件的目标名称为 'compress ”。
如何配置build.xml文件,当我调用“ ant compress 1”时,它会从文件运行压缩目标,并相应地在“ ”的情况下build_1.xml运行压缩目标?build_2.xmlant compress 2
参见https://ant.apache.org/manual/Tasks/ant.html
据我了解您的问题,您的 build.xml 文件中需要以下 2 个目标:
<target name="ant compress 1">
<ant antfile="build_1.xml" target="compress"/>
</target>
<target name="ant compress 2">
<ant antfile="build_2.xml" target="compress"/>
</target>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3629 次 |
| 最近记录: |