ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stephan beal <>
Subject Re: [Bug 7482] - PatternSet.setIncludes() does not SET includes, but appends them to a list
Date Tue, 26 Mar 2002 17:59:05 GMT
On Tuesday 26 March 2002 18:25 pm, Diane wrote:
> How about adding a reset() or resetPatterns(boolean includes, boolean
> excludes) method on PatternSet, that Stephan can call explicitly!?!?! That
> way's everybody's happy, and a PatternSet instance can be reused to match
> something else? Haven't looked at any code, but it seems that would work
> for Stephan... --DD

Sounds like a perfectly good solution for me... except that i cannot access 
the pattern set belonging to the MatchedTask/Zip/Jar tasks because there are 
no accessors for it (and it's not public/protected). What i was attempting 
was not something very many people are gonna try. The workarounds to make all 
that work would create more mess than it's worth.Erik's point about:
    <patternset id="patternset" includes="....">
        <include name="..."/>

shows clearly why it needs to append rather than set.  i was primary confused 
by the setter not setting, which is as much a doc bug as an implementation 

----- stephan
Generic Unix Computer Guy -
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
"...control is a degree of inhibition, and a system which is perfectly
inhibited is completely frozen." -- Alan W. Watts

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

View raw message