Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Where to put property files
Where to put property files [message #1221324] Tue, 17 December 2013 12:23 Go to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 100
Registered: January 2012
Senior Member
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 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 100
Registered: January 2012
Senior Member
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 Go to previous message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 100
Registered: January 2012
Senior Member
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\

?
Previous Topic:Showing a PDF file with the Browser component
Next Topic:Problem with new RWT.PRELOADED_ITEMS
Goto Forum:
  


Current Time: Tue Dec 23 03:43:46 GMT 2014

Powered by FUDForum. Page generated in 0.01634 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software