ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible" <m...@raibledesigns.com>
Subject RE: Regular expression matching
Date Fri, 21 Feb 2003 07:13:28 GMT
I'm no reqular expression expert - anyone have a clue how to replace my
desired strings?

Thanks,

Matt

> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Sent: Friday, February 21, 2003 12:07 AM
> To: user@ant.apache.org
> Subject: AW: Regular expression matching
> 
> 
> Have you tried
> 
> <loadfile>
> 	<filterchain/>
> </loadfile>
> 
> 
> You can write your own filter for doing the substitution, or 
> write your JSP not mit <c:out> but with @out@, then you can 
> use that as key and substitute it via <expandproperties/> or 
> with <replacetokens> <token key="out" value="<c:out>"/> 
> </replacetokens>. (not tested, but could work).
> 
> I think the best way is to write a <replaceregexp><regexp 
> pattern="foo" substite="bar"/></>.
> 
> 
> Jan Matèrne
>   
> 
> 
> > -----Urspr√ľngliche Nachricht-----
> > Von: Matt Raible [mailto:matt@raibledesigns.com]
> > Gesendet am: Freitag, 21. Februar 2003 03:59
> > An: 'Ant Users List'
> > Betreff: RE: Regular expression matching
> > 
> > Actually, what I'd like to do is be able to create a JSP 1.2
> > version of
> > my app (with c:out) and a JSP 2.0 (with c:out stripped 
> out).  I'd like
> > to have this as a switch when I run my build.xml.
> > 
> > Matt
> > 
> > > -----Original Message-----
> > > From: Craig Berry [mailto:Craig.Berry@portblue.com]
> > > Sent: Thursday, February 20, 2003 7:25 PM
> > > To: Ant Users List
> > > Subject: RE: Regular expression matching
> > > 
> > > 
> > > If you're just talking about doing this once for the
> > > codebase, I'd suggest using global substitution from your 
> > > favorite IDE (Eclipse does this very well).  Or, if you're 
> > > feeling old-school, use perl or sed or the like from the 
> > command line.
> > > 
> > > -----Original Message-----
> > > From: Matt Raible [mailto:matt@raibledesigns.com]
> > > Sent: Thursday, February 20, 2003 3:57 PM
> > > To: user@ant.apache.org
> > > Subject: Regular expression matching
> > > 
> > > 
> > > Is there a way that I can parse my .jsp files with a regexp
> > > matching and convert all of:
> > > 
> > > <c:out value="${...}" />
> > > 
> > > to simply:
> > > 
> > > ${...}
> > > 
> > > I want to be able to produce a JSP 2.0 version of my app from
> > > a JSP 1.2 codebase that uses JSTL.
> > > 
> > > Thanks,
> > > 
> > > Matt
> > > 
> > > 
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > 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