Locate OnlineGlom.properties using the ServletContext.
authorBen Konrath <ben@bagu.org>
Mon, 14 Mar 2011 11:44:42 +0000 (12:44 +0100)
committerBen Konrath <ben@bagu.org>
Mon, 14 Mar 2011 11:44:42 +0000 (12:44 +0100)
commit15ba99df450443992d0d7bf96d2a9cb253e1d888
treee94bb909e225d149d05b887f8138f14cf237da4c
parentcfc483ab9d1c417d282b7fd24d9c31e4a8b6b11d
Locate OnlineGlom.properties using the ServletContext.

This is required to be able to locate the file in the deployed servlet.

* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Configure the database and glom document in in a helper method so
that the ServletContext can be used to locate OnlineGlom.properties.
* src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
src/main/webapp. This is the proper location for .properites files.
ChangeLog
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
src/main/webapp/OnlineGlom.properties [deleted file]
src/main/webapp/WEB-INF/OnlineGlom.properties [new file with mode: 0644]