ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Robertson <>
Subject Use the replace task to insert line numbers and file names?
Date Thu, 04 Nov 2004 19:23:22 GMT
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?

I've looked at ant's docs and was hoping to see
something like an environment variable for the line
number and perhaps the file name of the current file
being scanned but I didn't find anything.

I was hoping I could do something like this...
<replace dir="${mysrc}" token="__LINE__"
<replace dir="${mysrc}" token="__FILE__"

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


Do you Yahoo!? 
Check out the new Yahoo! Front Page. 

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

View raw message