PDA

View Full Version : PropertyFileUpdate



Houwei
05-08-2003, 10:39 AM
Does anyone have a custom bean to update property files during installation ?

We release our application with some properties files and we need update it during installation with target path and some platform specific settings.

AsciiFileUpdate can not meet our needs because property value variable value are different.

For example, Target directory is C:\Program Files\MyApp
In property file, ':' and '\' are special char,
TargetDir=C\:\\Program Files\\MyApp
In Ascii file,
TargetDir=C:\Program Files\MyApp

I need call setProperty() in Java Properties package to change the value.

Thanks in advance.

robheim
05-09-2003, 08:48 AM
We are also running into a similar issue with our application.

I was planning on going back through the file after doing the initial changes and performing a search and replace on those special character strings using the ASCII File Update bean.

But would definitely be interested if someone has come up with a better way of manipulating Java Properties files.

-Rob

robheim
05-09-2003, 08:54 AM
We are also running into a similar issue with our application.

I was planning on going back through the file after doing the initial changes and performing a search and replace on those special character strings using the ASCII File Update bean.

But would definitely be interested if someone has come up with a better way of manipulating Java Properties files.

-Rob