ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: includes and excludes
Date Wed, 23 Oct 2002 14:42:52 GMT
Thanks Stefan. I actually thought of this later on as well. Using two
filesets might be easier, but using selectors is probably faster, since
you'd be scanning the directory only once. One would have to compare the two
methods to find out for sure though ;-) --DD

-----Original Message-----
From: Stefan Bodewig [] 
Sent: Wednesday, October 23, 2002 3:09 AM
Subject: Re: includes and excludes

On Tue, 22 Oct 2002, Mike Dougherty <> wrote:

> Which I expect to exclude all the classes under **/ejb except the
> class I have explicitly included.

In addition to the answer you've gotten, I just want to mention
selectors, which would give you fine gained crontrol over precedence
rules here.

    <copy todir="${deploy.server.classes.dir}" overwrite="${force}">
      <fileset dir="${build.dir}">
          <filname name="**/ejb/**/PyrLcDiagCd.class"/>
            <filename name="**/*.class"/>
              <filename name="**/ejb/**/*.class"/>

would do what you wanted (unless my logic is broken, quite possible).

Using two filesets is certainly easier.


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

View raw message