ant 中正确的组合是什么?

发布于 2024-07-19 07:20:07 字数 365 浏览 3 评论 0原文

当您组合这些文件集属性时,似乎并不像下面这样: 例如:

<fileset dir="src">
    <include name="gov/nasa/arc/mas/selenium/tests/*.java" />
    <excludesfile name="${test.suite}.exclude" />
</fileset>

它具有预期的行为,即包含 src 下的所有 *.java 但排除排除文件上指定的所有文件。

是否可以组合包含和排除文件,或者您是否需要使用相应的包含文件?

遗憾的是这些事情没有记录在案,而且很难在谷歌上找到解释。

It doesnt seem that when you combine these Fileset attribute like below:
eg:

<fileset dir="src">
    <include name="gov/nasa/arc/mas/selenium/tests/*.java" />
    <excludesfile name="${test.suite}.exclude" />
</fileset>

that it has the expected behavior which is to include all *.java under src but exclude all the file specified on the excludefile.

Is it possible to combine include and excludesfile or do you need to user a corresponding includesfile??

Its a shame that these things are not documented and its hard to find explanations on google.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

几度春秋 2024-07-26 07:20:07

实际上,我认为Ant手册对于这些类型的东西

我不清楚的是你想做什么。 您想将外部文件用于“包含”和“排除”吗? 或者您希望其中一个覆盖另一个?

Actually, I think the Ant Manual is pretty clear about these types of things.

What isn't clear to me is what it is that you want to do. Do you want to use external files for both your "includes" and your "excludes"? Or are you looking to have one override the other?

内心荒芜 2024-07-26 07:20:07

已记录并且应该可以工作:http://ant。 apache.org/manual/Types/fileset.html

请注意,在排除文件中,“该文件的每一行都被视为排除模式”。 你的排除文件是什么样的?

It is documented and should work: http://ant.apache.org/manual/Types/fileset.html

Note that in the excludesfile, "each line of this file is taken to be an exclude pattern." What does your excludesfile look like?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文