I would do it like this (however, other solutions must exist and could be
better, this is just my way)
load the properties file using
now you can access the value of you build-date property this way
${build-date}
then you can use replaceregexp to change the value of the versio
I'm not sure if editing source files with build scripts is the best way to
handle this situation. It would probably be better for the Java program to
read the build-date value from the properties file itself. But you may have
a compelling reason to edit the source file; that's up to you.
I had nev
Hi All,
I need a help regarding reading and writing to a file. There is a file
ui.properties which looks something like this
build-date= AmarGeet_0098_20040812
now i want to read this value of variable 'build-date' and write it to a
'String' variable in a java file