English 中文(简体)
为什么`**/*ant*'排除了打工的模式,而“......”**/*ant*/**`工作罚款?
原标题:Why `**/*ant*` exclude pattern doesn t work, but `"**/*ant*/**` works fine?
  • 时间:2010-03-10 09:00:40
  •  标签:
  • ant
  • fileset

请允许我在我的其中一个目标中说:

<path id="files">
   <fileset dir="${env.DIRECTORY}" casesensitive="false">
     <include name="**/*.html"/>
     <exclude name="**/*ant*"/>
    </fileset>
</path>

我将全部html档案整理起来,但载有驾驶员的档案除外。 我在上文写道,它不可行。 我也试图具体指出:

<exclude name="*ant*"/>

请注意,档案中是否有案件敏感性被撤销。 然而,如果我写:

<exclude name="**/*ant*/**"/>

确实如此。 为什么没有排除工作的第一和第二版本?

最佳回答

第一和第二起案件没有对应,因为你正在寻找含有ant>的目录。

第三起案件与在路程中具有重要成分的所有档案相匹配,包括作为文档名称的ant。

http://ant.apache.org/manual/dirtasks.html#directory basedtasks”rel=“noreferer”

问题回答

暂无回答




相关问题
i want to continously run my java threads

I am running my java application where i have used threads... i am running this application using ant command on the terminal.. But when i close my terminal or press ctrl+c,then java program which was ...

Subant targets instead of ant

I m having a problem with subant and have no ideas any more. Can anyone help? Using Ant to replace some strings for other (i.e Productname and Version for "Foo" and "1.2") I used ...

java ant buildfile for project with dependencies

I am new to ant, but am trying to create an ant script that builds my current proeject with another project as a dependency. I have the ant script building my current project, but am unsure how to add ...

Building Apache Hive - impossible to resolve dependencies

I am trying out the Apache Hive as per http://wiki.apache.org/hadoop/Hive/GettingStarted and am getting this error from Ivy: Downloaded file size doesn t match expected Content Length for http://...

Ivy, ant and start scripts

I have a project that uses ant to build and ivy for dependencies. I would like to generate the start scripts for my project, with the classpath, based on the dependencies configured in Ivy, ...