(refs #1379)Prepend "/" if specified prefix does not start with it

This commit is contained in:
Naoki Takezoe
2016-12-28 12:11:43 +09:00
parent 9c9876c918
commit 572ea5bf47

View File

@@ -24,6 +24,9 @@ public class JettyLauncher {
port = Integer.parseInt(dim[1]);
} else if(dim[0].equals("--prefix")) {
contextPath = dim[1];
if(!contextPath.startsWith("/")){
contextPath = "/" + contextPath;
}
} else if(dim[0].equals("--gitbucket.home")){
System.setProperty("gitbucket.home", dim[1]);
}