ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: includes and excludes
Date Wed, 23 Oct 2002 08:08:50 GMT
On Tue, 22 Oct 2002, Mike Dougherty <MDougherty@xifin.com> 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}">
        <or>
          <filname name="**/ejb/**/PyrLcDiagCd.class"/>
          <and>
            <filename name="**/*.class"/>
            <not>
              <filename name="**/ejb/**/*.class"/>
            </not>
          </and>
        </or>
      </fileset>
    </copy>

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

Using two filesets is certainly easier.

Stefan

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


Mime
View raw message