In play1, we can get the app path by:
Play.applicationPath
How to do the same in Play2?
With the Scala API, you can do it like this to get a java.io.File
to the app:
import play.api.Play.current
Play.application.path
In Java:
import play.Play;
Play.application().path();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With