S
Steve
Hi,
I have a web app running in Tomcat and it can be configured with various
parameters.
In particular, one of the parameters is a file path that defines where
various work files, uploaded files and logs are written to.
I have created a config file in this folder for other parameters but
ultimately something needs to define this path.
My first attempt had the path hard-coded but now I realise that's probably
not right, since I have to install the web app on Windows and Unix machines.
So then I checked the 'os.name' system property but that only gave me a Unix
version and a Windows version of the path - still ultimately hard-coded.
Where is the best place to configure this path so it's not hard coded in the
web app and is easy to configure when the app is deployed?
Thanks very much.
--
Regards,
Steve
"...which means he created the heaven and the earth... in the DARK! How good
is that?"
I have a web app running in Tomcat and it can be configured with various
parameters.
In particular, one of the parameters is a file path that defines where
various work files, uploaded files and logs are written to.
I have created a config file in this folder for other parameters but
ultimately something needs to define this path.
My first attempt had the path hard-coded but now I realise that's probably
not right, since I have to install the web app on Windows and Unix machines.
So then I checked the 'os.name' system property but that only gave me a Unix
version and a Windows version of the path - still ultimately hard-coded.
Where is the best place to configure this path so it's not hard coded in the
web app and is easy to configure when the app is deployed?
Thanks very much.
--
Regards,
Steve
"...which means he created the heaven and the earth... in the DARK! How good
is that?"