I'm developing a java web app on my local PC that uses a file on the deployment server. I have to do something like this to get it to work both locally during development and on the server when deployed. Is this standard practice? Or is there a way in Eclipse using linked folders and files to specify the file the same as it is referenced on the server?
InputStream in = null;
try {
in = new FileInputStream("/EBWEB/www/homepages/path/to/file/STKCore.properties");
} catch (java.io.FileNotFoundException ex) {
in = new FileInputStream("W:/internal/www/homepages/path/to/file/STKCore.properties");
}
W: is how I have the remote server mapped using Samba in Windows XP on my PC.