ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: Include/exclude precedence
Date Sat, 18 Mar 2006 03:33:30 GMT
>    <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 **/


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

View raw message