ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Davies" <aaron.dav...@gmail.com>
Subject Re: Line *Doesn't* Contain?
Date Tue, 11 Jul 2006 17:15:25 GMT
On 7/11/06, Dominique Devienne <ddevienne@gmail.com> wrote:
So which approach are you going to be taking? Adding a "not" attribute
to the relevant filters  sounds like the simplest to me.

> By all means, be my guest Matt ;-) --DD
>
> On 7/11/06, Matt Benson <gudnabrsam@yahoo.com> wrote:
> > --- Dominique Devienne <ddevienne@gmail.com> wrote:
> >
> > > this are not conditions, but filters. There's no
> > > <not>.
> > >
> > > I guess a negate attribute on <linecontains[regexp]>
> > > would be
> > > required, or a <unchanged> weird pseudo filter that
> > > accept a nested
> > > filter, and 'reverses' the nested filter's job, by
> > > accepting only
> > > lines unchanged by the nested filter.
> >
> > Hmm... I like that.  Semantically superior to <not>
> > wrt to filters and covers all of what could reasonably
> > be expected of the hypothetical "not filter."  Do you
> > want to write it or should I?  ;)
> >
> > -Matt
> >
> > >
> > > Or some regexp wizardry of course. --DD
> > >
> > > On 7/11/06, Master, Tariq (Abbeywood)
> > > <Tariq.Master@uk.bp.com> wrote:
> > > >
> > > >
> > > > I'm sure I read an example in the ant manual using
> > > the <not> element.
> > > > (having inet access issues so no direct linke -
> > > sorry)
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Aaron Davies [mailto:aaron.davies@gmail.com]
> > > > Sent: 11 July 2006 16:20
> > > > To: Ant Users
> > > > Subject: Line *Doesn't* Contain?
> > > >
> > > > How can I do a negative filter in a filterchain?
> > > I've tried to use a
> > > > negative lookahead regexp /.*(?!foo).*/, but so
> > > far no luck.
> > > > --
> > > > Aaron Davies
> > > > aaron.davies@gmail.com
> > > >
> > > >
> > > >
> > >
> > ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > ---------------------------------------------------------------------
> > 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
>
>


-- 
Aaron Davies
aaron.davies@gmail.com

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


Mime
View raw message