Default to current working directory if no appdir is provided.

This commit is contained in:
Michael Bayne
2019-04-10 11:35:55 -07:00
parent f2f418f5cf
commit 8d59367742
@@ -139,9 +139,10 @@ public final class EnvConfig {
}
}
// ensure that we were able to fine an app dir
// if no appdir was provided, default to the current working directory
if (appDir == null) {
return null; // caller will report problem to user
appDir = System.getProperty("user.dir");
appDirProv = "default (cwd)";
}
notes.add(Note.info("Using appdir from " + appDirProv + ": " + appDir));