ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Stupid newbie question
Date Wed, 17 Sep 2003 15:46:32 GMT
Yes, using Selectors. Something like this (not tested):

<selectors id="...">
  <or>
    <and>
      <filename name="**/*" />
      <filename name="**/*Base*.java" negate="true" />
    </and>
    <filename name="**/*TimeBased.java" />
  </or>
</selectors>

--DD

> -----Original Message-----
> From: Steve Cohen [mailto:SCohen@sportvision.com]
> Sent: Wednesday, September 17, 2003 9:51 AM
> To: Ant Users List
> Subject: RE: Stupid newbie question
> 
> That works.  Feels a little hacky though.  Is there another way?
> 
> Anyway, thanks.  Don't have any more time to devote to this.
> 
> 
> -----Original Message-----
> From: David McTavish [mailto:dmctavish@sandvine.com]
> Sent: Wednesday, September 17, 2003 9:45 AM
> To: 'Ant Users List'
> Subject: RE: Stupid newbie question
> 
> 
> Could you just have two embedded filesets?
> 
> <copy ...>
>     <fileset dir="src">
>          <include name="**/*"/>
>          <exclude name="**/*Base*.java"/>
>     </fileset>
>     <fileset dir="src">
>         <include name="**/*TimeBased.java"/>
>     </fileset>
> </copy>
> 
> 
> d.
> 
> -----Original Message-----
> From: Steve Cohen [mailto:SCohen@sportvision.com]
> Sent: Wednesday, September 17, 2003 10:43 AM
> To: user@ant.apache.org
> Subject: Stupid newbie question
> 
> 
> and I'm not a newbie.
> How embarrassing.
> 
> It seems that in a <fileset>, if a particular file matches both an
> <include> pattern and an <exclude> pattern, it will be excluded.  That
> seems quite logical; I don't find this explicitly stated anywhere in the
> manual, however.  Regardless of that, suppose I really do mean to
> exclude all files with the word "Base" in their names, except for one
> particular file, named, say, "TimeBased.java".  How would I accomplish
> this?  I'm having way too much trouble handling this seemingly simple
> problem.
> 
> Steve Cohen
> Sr. Software Engineer
> Sportvision, Inc.
> scohenATSportvisionDOTcom
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

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


Mime
View raw message