ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: FileSet and Selector
Date Mon, 19 Jul 2004 13:14:48 GMT
On Mon, 19 Jul 2004, Patrick Martin <> wrote:

> Selectors are available as nested elements.within the FileSet. If
> any of the selectors within the FileSet do not select the file, the
> file is not considered part of the FileSet. This makes FileSets
> equivalent to an <and> selector container.
> This surprises me as it would mean that the following
> <fileset dir="mydir">
>    <include name="**/*.java"/>
>    <include name="**/*.class"/>
> </fileset>
> does not match any file.

<include> is not a selector.  It is a nested element of the (older)
implicit <patternset> formed by <fileset>

> My question behind this is: what selector container is equivalent to
> a fileset?

<and>.  And it also is a <patternset>.  If you want to, you can view
the patternset as an <or>-like sepector of its own, although the
result of combining <include> and <exclude> doesn't match either <and>
nor <or>.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message