i have a variable abc
and had the value this is ant script
. This abc variable will keep on changing.
Using ANT script, how can i write the value out to the file?
i have a variable abc
and had the value this is ant script
. This abc variable will keep on changing.
Using ANT script, how can i write the value out to the file?
Use propertyfile task. An example taken from ant manual:
This may be better than
echo
as it updates the properties file with a given value, whileecho
appends to or overwrites the whole file.The echo task in ANT is able to write to files