ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject RE: Ant 1.5.4: How to do general text transformations on a file?
Date Fri, 24 Jun 2005 15:51:53 GMT
Are you escaping with a backslash or "&lt;" ?

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


"Karr, David" <david.karr@wamu.net> wrote on 06/24/2005 11:47:11 AM:

> Minor issue with this: It appears that the regexp pattern cannot 
> include the "<" character, even if it's escaped.  This isn't 
> mentioned in the documentation.  In my case, it's relatively safe to
> just replace that with "." in the pattern, but I was wondering about 
this.
> 
> > -----Original Message-----
> > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> > Sent: Thursday, June 23, 2005 10:19 PM
> > To: user@ant.apache.org
> > Subject: AW: Ant 1.5.4: How to do general text 
> > transformations on a file?
> > 
> > 
> > Just an idea
> > 
> > <replaceregexp byline="true">
> >   <regexp pattern="..(.*)"/>
> >   <substitution expression="\1"/>
> > 
> >   <fileset ...>
> > 
> > </replaceregexp>
> > 
> > 
> > Jan 
> > 
> > >-----Urspr√ľngliche Nachricht-----
> > >Von: Karr, David [mailto:david.karr@wamu.net]
> > >Gesendet: Freitag, 24. Juni 2005 06:31
> > >An: Ant Users List
> > >Betreff: Ant 1.5.4: How to do general text transformations on a file?
> > >
> > >Due to a bug in the Weblogic wlwBuild task (it doesn't matter
> > >what the bug is), I'm trying to figure out how I can do a 
> > >simple text transformation on every line of a text file.  In 
> > >particular, I need to remove the first two characters from 
> > >every line of a file.  It's simply a question of whether it's 
> > >easier to develop a workaround or work with BEA to get a fix 
> > >for the bug.  If doing this transformation is easy to do (I 
> > >don't see how to do it), then I'll settle for this for now and 
> > >work with BEA in the background.
> > >
> > >---------------------------------------------------------------------
> > >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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message