Best practice to manage file paths on multiple platforms?
- From: Steve <root@xxxxxxxxx>
- Date: Sat, 17 Jun 2006 05:23:56 GMT
Hi,
I'm developing a web app on a Windows PC and deploying on Mac OS X Server.
(Both Java 1.4.2, Tomcat 5.5.17).
What's the best way to transparently different file paths on the different
platforms?
For example, on the Windows development environment the application reads
and writes files to a directory called 'd:\mywebapp'. When I deploy to Mac
OS X Server I want the application to transparently start using
/usr/local/mywebapp.
I'm using the system property os.name at the moment which is a bit naff.
How do I provide application-wide init parameters and is there a way to set
up those parameters so my .war file is platform agnostic and it just looks
them up to see which file path to use?
Thanks for any help.
--
Regards,
Steve
"...which means he created the heaven and the earth... in the DARK! How good
is that?"
.
- Prev by Date: Re: How do I use events with Netbeans?
- Next by Date: Re: How do I use events with Netbeans?
- Previous by thread: How do I use events with Netbeans?
- Next by thread: Help: Too many files open
- Index(es):
Relevant Pages
|
|