ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "samuel cheung" <sylche...@gmail.com>
Subject How can I use regular expression in <replace> task?
Date Tue, 25 Jul 2006 15:20:49 GMT
Hi,

How can I use regular expression in <replace> task?

I have an ant call like this:

<replace file="A.java" token="A implements IField1, IField2, IField3"
value="public class Field" />

how can I use regular expressesion to replace "IField1, IField2,
IField3" with any characters? So that this replace will still work
even if I 'A' implements more interface?

Thank you.

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


Mime
View raw message