ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
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 **/

--DD

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


Mime
View raw message