开发者

Purpose and usage of "application.path" variable

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

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

Where can I find the application.path value?


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.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜