【问题标题】:Dynamically finding build files with <ant> task使用 <ant> 任务动态查找构建文件
【发布时间】:2010-08-04 12:57:59
【问题描述】:

我正在尝试从我的主要 Ant 构建脚本构建子项目..

构建文件位于

plugings/<pluginName>/build.xml

我想做一些有效的事情,比如

<ant antfile="plugins/*/build.xml" ...>

它应该在插件目录中动态查找构建文件。还不能让它与文件集一起工作。有什么提示吗?

提前致谢。

解决方案: &lt;subant&gt; 是我正在寻找的任务

【问题讨论】:

    标签: ant build-automation


    【解决方案1】:

    这些链接向您展示了一种构建子项目的方法:

    Sample Ant build file for multiple projects

    Ant Tip 1: Write a master build file

    检查这个答案:

    Generate Ant build file

    【讨论】:

    • 是的,但我想要的是能够使用文件名/路径的模式来构建文件。我希望它在添加所有插件时动态构建它们
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-16
    • 2011-03-23
    相关资源
    最近更新 更多