蚂蚁 - 运行一个build.xml的所有子目录 [英] Ant - Run a Build.xml for all subdirectories

查看:168
本文介绍了蚂蚁 - 运行一个build.xml的所有子目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个build.xml坐在顶层,我希望脚本运行目标,每个子目录,并在子目录名作为参数传递到Ant目标。

I have a build.xml sitting at the top level and I want the script to run a target for each subdirectory and pass in the subdirectory name as a parameter to the ANT target.

您能帮我吗?/ ??

Can you help ?/??

感谢

推荐答案

这是可能是你要找的,

把这个作为目标之一,你的父母的build.xml

put this as one of your target in your parent build.xml

<target name="executeChildBuild">

    <ant antfile="sub1/build.xml" target="build" />
    <ant antfile="sub2/build.xml" target="build" />

</target>

这篇关于蚂蚁 - 运行一个build.xml的所有子目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆