Skip to content

Instantly share code, notes, and snippets.

@bcm
Created February 13, 2011 01:28
Show Gist options
  • Save bcm/824318 to your computer and use it in GitHub Desktop.
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
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