Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
fileset includes and excludes precedence

fileset includes and excludes precedence

2005-06-22       - By Eric Wood
Reply:     1     2  

I have a copy task that uses a fileset with "includes" and "excludes"  values
set as properties. As it turns out, the include list is wildcarded to include
all files under the dir, but the excludes is set to exculde all files under a
"src" directory. include.list=**/* excludes=**/src/*

This task is in a generic copy target that is part of  a "higher" level build
script that is imported iby lower level scripts.

What I see is that the includes takes affect regardless of the excludes. How
does filset handles the reults of both parameters? Is there a precedence
applied?


<copy todir="${dir.deploy}/${artifact}" verbose="true">
                   <fileset dir="${dir.src}" includes="${include.list}
excludes=${exclude.list}" />
</copy>

Eric Wood
ewood@(protected)
207.552.2306

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.