You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dominique Devienne <dd...@gmail.com> on 2006/03/18 04:33:30 UTC

Re: Include/exclude precedence

>    <subant target="deploy">
>        <fileset dir="." >
>            <include name="**/build.xml"/>
>            <exclude name="**/ClearCache/build.xml"/>
>            <exclude name="com/**/build.xml"/>
>        </fileset>
>    </subant>
>
> It appeared to exclude the build.xml in the ClearCache folder, but was
> picking up the build.xml files in the com subdirectory.  How do these
> two nested elements interact?

First file are selected from the includes. Then this list (or set if
you prefer) is trimmed of all files that match *any* excludes. If it
picks up build.xml from within com/**, it likely means that dir="." is
not the direction that directly contains the com/ directory. The other
2 patterns are un-affected, because they start with **/

--DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org