1

In the Play! framework source for the main method in Server.java I found these two lines:

File root = new File(System.getProperty("application.path"));
if (System.getProperty("precompiled", "false").equals("true")) {
    Play.usePrecompiled = true;
}

Where can I find the application.path value?

Brad Mace
  • 27,194
  • 17
  • 102
  • 148
user471011
  • 7,104
  • 17
  • 69
  • 97

3 Answers3

3

System.getProperty("application.path") that looks like a -D property. So at the start of the server there is a call like java -Dapplication.path=/opt/play/myApp

/play/framework/pym/play/application.py in line 251 makes the work.

niels
  • 7,321
  • 2
  • 38
  • 58
0

It may be in your application.conf file. Check there.

Jasarien
  • 58,279
  • 31
  • 157
  • 188
i.am.michiel
  • 10,281
  • 7
  • 50
  • 86
0

There might be a properties file in your application and also there might be a mechanism to load all those properties into System properties.

Search for application.path in your application folder file contents and you may get a clue.

Ravindra Gullapalli
  • 9,049
  • 3
  • 48
  • 70