ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@rediffmail.com>
Subject Re: [PATCH] 'Contains' element for Include and Exclude
Date Tue, 16 Oct 2001 01:41:19 GMT

D'oh!  Perhaps we do need a notcontains element as 
well.  I will resend the patch with the additional 
element.  Or perhaps, regex gurus can tell how
to search for strings that do not contain a pattern.

Thanks, Diane, for pointing it out.

Magesh

On Tue, 16 Oct 2001 Diane Holt wrote :
> --- Magesh Umasankar <umagesh@rediffmail.com> wrote:
> >       <!-- 
> >           Include xml files that contain the text foo 
> and ABC and
> >           does not contain the text bar (case doesn't 
> matter) 
> >       -->
> >       <include name="**/*.xml">
> >         <contains text="foo"/>
> >         <contains text="^bar" ignorecase="yes"/>
> 
> I would expect that last line to find files that have 
> lines that begin
> with "bar" -- I thought using the caret as "not" was 
> only true inside
> brackets (ie., [^bar]).
> 
> Diane
> 
> =====
> (holtdl@yahoo.com)
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
 


Mime
View raw message