ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Use the replace task to insert line numbers and file names?
Date Fri, 05 Nov 2004 07:30:38 GMT
On Thu, 4 Nov 2004, Keith Robertson <> wrote:

> Is it possible to use the replace task to scan
> sourcecode for tokens and then replace them with the
> line number of that token in its respective file?


> Does anyone have any thoughts on how I might do this?

You could write a filterreader[1] that keeps track of the line number and
does the replace.  And then use a copy task together with that



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

View raw message