ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <kojak_nt@yahoo.com> 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?

No.

> 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
filterreader.

Stefan

Footnotes: 
[1]  http://ant.apache.org/manual/CoreTypes/filterchain.html


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


Mime
View raw message