oer*_*ers 17
您可以使用ant任务来实现这一点,该任务在外部构建文件上运行ant.
例:
<ant antfile="../otherproject/build.xml" target="compile"/>
Run Code Online (Sandbox Code Playgroud)
属性
默认情况下,所有当前属性都将传递给调用的ant构建inheritAll="false",如果您希望其他构建本机行为,则可以通过设置禁用此属性.
需要的属性可以通过嵌套标记传递:
<ant inheritAll="false" antfile="../otherproject/build.xml" target="compile">
<property name="my.property" value="myValue"/>
</ant>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10693 次 |
| 最近记录: |