Skip to content

Commit

Permalink
allow caller to specify both app home and wrapper config file
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Aug 3, 2018
1 parent 15b88a4 commit 617c059
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -37,9 +37,12 @@ public static void main(String[] args) throws Exception {
String configFile = null;
String jarFile = Wrapper.class.getProtectionDomain().getCodeSource().getLocation().getFile();

if (args.length > 1) {
if (args.length == 2) {
configFile = args[1];
appDir = getParentDir(configFile);
} else if (args.length == 3) {
configFile = args[1];
appDir = args[2];
} else {
appDir = getParentDir(jarFile);
configFile = findConfigFile(appDir + File.separator + "conf");
Expand Down

0 comments on commit 617c059

Please sign in to comment.