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 issue:
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. <replaceregexp file="${app.src.java}/com/mycopany/product/utility/MyLocator.java" match="private java.lang.String mySoapAddress = (.*?);" replace="private java.lang.String mySoapAddress = ${my.address};" byline="true"/> 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 marks. Any suggestions would be greatly appreciated. Thanks, HD-- View this message in context: http://ant.1045680.n5.nabble.com/replaceregexp-task-tp4363867p4363867.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org