Bug 318 : ENHANCEMENT - Ability to specify ebean.logging.directory=${servlet.realpath}/WEB-INF/logs
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.7.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
09/09/2010
Updated 
09/09/2010
Type 
Bug
 
Attachments 
No attachments

That is, the ability to use and evaluate an expression that is the root path of a webapp.

Refer to http://groups.google.com/group/ebean/browse_thread/thread/73f098ff6546c4c0

 
Rob 09 Sep 10:41
Fixed in HEAD

In the web.xml you can register Ebeans ServletContextListener.

<web-app>

  <listener>
    <listener-class>
     com.avaje.ebeaninternal.server.core.ServletContextListener
    </listener-class>
  </listener>

...

If you register this ServletContextListener then it will set a variable called "servlet.realpath" to be the absolute path of the webapp.

woResponse

Upload a file