我怎样才能排除一个Ant文件集的文件列表(保存在一个文件)? [英] How can I exclude a list of files (held in a file) from an Ant fileset?

查看:136
本文介绍了我怎样才能排除一个Ant文件集的文件列表(保存在一个文件)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法有一个Ant Fileset-> IncludesFile属性获取包含的Java类文件的列表中排除属性文件或任何其他文件?

Is there a way to have an Ant Fileset->IncludesFile attribute take a property file OR any other file that contains a list of Java class files to exclude?

例如:

文件A.properties或A.java包含清单

File A.properties OR A.java contains listing


abc.class 
mno.class 
xyz.class 

有没有办法说点excludesFile到文件A.properties。

Is there a way to say to point excludesFile to file A.properties.

<fileset dir="...">
    <excludesFile file="A.properties" />
</fileset>

这是我想要的行为就是Java运行时,它排除了此文件中列出的Java文件(A.properties)

The behavior that I want is when Java runs, it excludes the Java files listed in this file (A.properties)

推荐答案

嗯......不知道它是区分大小写的。在 http://ant.apache.org/manual/Types/fileset.html <文档/ A>显示excludesfile,全部小写,与其他蚂蚁的指令。

Hmm...not sure if it's case sensitive. The documentation at http://ant.apache.org/manual/Types/fileset.html shows "excludesfile", all lowercase, as with other ant directives.

我不知道你问的是什么。如果你有一个文件集是包括你想排除的文件,要指定文件在外部文件来排除该列表,excludesfile是做了正确的道路。

I'm not sure exactly what you are asking. If you have a fileset which is including files you would like to exclude, and you want to specify that list of files to exclude in an external file, "excludesfile" is the correct way to do it.

这篇关于我怎样才能排除一个Ant文件集的文件列表(保存在一个文件)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆