ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: AW: Why don't my selectors select anything?
Date Fri, 01 Apr 2005 15:28:54 GMT

--- Jan.Materne@rzf.fin-nrw.de wrote:
> Personally I think about <ex|include> AS a selector
> :-) Itīs selected if the
> filename
> matches the given string.

I used to think of patternsets as selectors as well.

> 
> <fileset dir="" includes="foo"/> 
> 
> is the same as
> 
> <fileset dir="">
>   <include name="foo"/>
> </fileset>
> 
The nested include is still a pattern rather than a
selector; a better comparison would have been

<fileset dir="">
  <filename name="foo" />
</fileset>

But when you start getting into Ant's filescanning
implementation you see that patterns have precedence
over selectors, which can have surprising results
under the right/wrong circumstances.

-Matt


		
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

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


Mime
View raw message