Best practice to manage file paths on multiple platforms?



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?"

.



Relevant Pages

  • Re: kerberos problem
    ... I am not familiar with Mac logons to a Windows domain, ... Server 2003 server. ... > The Windows Server 2003 doesn't show any Kerberos errors in the Event Viewer. ...
    (microsoft.public.win2000.security)
  • Re: powerpc 8600/250, lo conoscete?
    ... puoi collegare diversi tipi di computer e server ... Puoi collegarti a computer Mac in cui la "Condivisione documenti" o la ... "Condivisione Windows" siano attive nonché ...
    (it.comp.macintosh)
  • Re: How to set up in order to map to Window server from G5 computer
    ... Make sure to check the Apple Macintosh check box. ... On the Mac ... I have try to log into the Windows server, ... Do you have File Services for Macintosh enabled on the Windows ...
    (microsoft.public.macintosh.general)
  • Help - cant remote access Windows email server
    ... I'm a Mac guy trying to get a couple of iMacs (mine and my daughter's to ... remotely access her employer's Windows email server). ... are the instructions to set up a PC at home running Windows: ... When prompted for username and password enter your network information. ...
    (comp.sys.mac.system)
  • Help - remote access problem to Windows email server
    ... I'm a Mac guy trying to get a couple of iMacs (mine and my daughter's to ... remotely access her employer's Windows email server). ... are the instructions to set up a PC at home running Windows: ... When prompted for username and password enter your network information. ...
    (comp.sys.mac.system)