Added some comments on priority ordering when looking for context path

This commit is contained in:
nsingh
2018-11-08 17:59:23 -08:00
parent efd29096ec
commit 513c729e71

View File

@@ -43,6 +43,8 @@ public class ContextPath {
private static String findContextPath(JSONObject env, String contextPathProp) {
String contextPath = null;
if (env != null) {
// Properties defined in command line args have higher priority over
// those defined in application configuration files (properties/yaml files)
contextPath = findInCommandLineArgs(env, contextPathProp);
if (contextPath == null) {
contextPath = findInApplicationConfig(env, contextPathProp);