ant 中正确的组合是什么?
当您组合这些文件集属性时,似乎并不像下面这样: 例如:
<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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上,我认为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?
它已记录并且应该可以工作: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?