Where to put property files [message #1221324] |
Tue, 17 December 2013 12:23 |
|
We should read a property file, which, when deployed, must not be inside a .jar.
This is because it should be easily identified and modified, so it should be inside the WEB-INF folder or a subfolder, not embedded in a jar.
What is a good practice for this?
Thank you
Vincenzo
|
|
|
Re: Where to put property files [message #1222624 is a reply to message #1221324] |
Fri, 20 December 2013 23:09 |
|
We tried also to put a property file into the deployed application in several locations (WEB-INF/, WEB-INF/lib/, WEB-INF/classes) and reading as a stream.
But every time we get the error 'File does not exists'.
What could we do?
Is there an equivalent of workspace (yes, the same for all users: in this case is ok) in RAP? If yes what is its location/folder?
TIA
Vincenzo
|
|
|
Re: Where to put property files [message #1226865 is a reply to message #1222624] |
Thu, 02 January 2014 23:37 |
|
With Tomcat, using
Platform.getLocation().toOSString()
we get for example
E:\dev\tomcat7\work\Catalina\localhost\myapp\eclipse\workspace
Is there a way to get the deploy folder, e.g.
E:\dev\tomcat7\webapps\myapp\
?
|
|
|
Powered by
FUDForum. Page generated in 0.05128 seconds