It doesnt seem that when you combine these Fileset attribute like below: eg:
当你像下面这样组合这些Fileset属性时似乎没有:例如:
<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.
它具有预期的行为,即在src下包含所有* .java但排除excludefile上指定的所有文件。
Is it possible to combine include and excludesfile or do you need to user a corresponding includesfile??
是否可以将include和excludes文件组合在一起,还是需要用户使用相应的includesfile?
Its a shame that these things are not documented and its hard to find explanations on google.
遗憾的是,这些东西没有记录,很难在谷歌上找到解释。
2 个解决方案
#1
Actually, I think the Ant Manual is pretty clear about these types of things.
实际上,我认为Ant手册对这些类型的东西非常清楚。
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?
我不清楚你想做什么。您是否要将“外部”文件用于“包含”和“排除”?或者你想要一个覆盖另一个?
#2
It is documented and should work: http://ant.apache.org/manual/Types/fileset.html
它是记录在案的,应该可以工作: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?
请注意,在excludes文件中,“此文件的每一行都被视为排除模式”。你的排除文件是什么样的?
#1
Actually, I think the Ant Manual is pretty clear about these types of things.
实际上,我认为Ant手册对这些类型的东西非常清楚。
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?
我不清楚你想做什么。您是否要将“外部”文件用于“包含”和“排除”?或者你想要一个覆盖另一个?
#2
It is documented and should work: http://ant.apache.org/manual/Types/fileset.html
它是记录在案的,应该可以工作: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?
请注意,在excludes文件中,“此文件的每一行都被视为排除模式”。你的排除文件是什么样的?