Hi Everyone,
Im new to Ant and I am encountering some problems.
I have a text file which contains a value in there. I need that value
to be set into another file.
I tried using Javascript but Javascript does not support I/O for files.
Is there any command in Ant that can read a value from a text file (
eg. output.txt ) and then use that value to replace into another file (
eg. jsp ).
Thanks,
Marvin
Roedy Green - 16 Nov 2005 10:12 GMT
>Im new to Ant and I am encountering some problems.
>I have a text file which contains a value in there. I need that value
[quoted text clipped - 3 lines]
>eg. output.txt ) and then use that value to replace into another file (
>eg. jsp ).
see http://mindprod.com/jgloss/multiposting.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
rynox - 17 Nov 2005 01:56 GMT
There dont seem to be any syntax that shows how i can retrieve a value.
Roedy Green - 17 Nov 2005 02:51 GMT
>There dont seem to be any syntax that shows how i can retrieve a value.
Want you want is a way to read a small amount of text from a file and
put it into an ANT property?
Look at the LOADFILE task.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.