ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harleydude <>
Subject replaceregexp task
Date Mon, 02 May 2011 02:28:17 GMT
I have been search through Google and the web for an answer.....  I have not
been very successful, so I thought I would ask other users.  Here is my

I have a class file I need to modify based how how the code is deployed,
i.e. prod, stage, dev.  The best way I have devised is using a regular
expression as it is defined in ANT.  

                     match="private java.lang.String mySoapAddress = (.*?);" 
  	        replace="private java.lang.String mySoapAddress = ${my.address};" 
 The ${my.address} is a varible I have populated based upon which
environment I am deploying to.  

The problem is a string in Java must be enclosed within double quotation

Any suggestions would be greatly appreciated.


View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message