Created
February 13, 2011 01:28
-
-
Save bcm/824318 to your computer and use it in GitHub Desktop.
Circumflex property file resolver that uses the servlet context to find the properties file within the webapp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File | |
import ru.circumflex._, core._, web._ | |
class ServletPropertyFileResolver extends PropertyFileResolver { | |
override val propsRoot = new File(servletContext.getRealPath(cx.getOrElse("cx.messages.root", "/WEB-INF").toString)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment