IDEMPIERE-206 Integrate fitnesse with iDempiere. Allow overriding of fitnesse server host address.
This commit is contained in:
parent
74ad6793cb
commit
49c1db3d7e
|
@ -18,7 +18,11 @@ public class FitServerServletInvoker extends ServletInvoker {
|
||||||
CommandLine commandLine = new CommandLine("url host port socketToken");
|
CommandLine commandLine = new CommandLine("url host port socketToken");
|
||||||
if (commandLine.parse(argv)) {
|
if (commandLine.parse(argv)) {
|
||||||
servletUrl = commandLine.getArgument("url");
|
servletUrl = commandLine.getArgument("url");
|
||||||
|
String host = System.getProperty("FITNESSE_HOST");
|
||||||
|
if (host == null || host.trim().length() == 0)
|
||||||
fitnesseHostAddress = commandLine.getArgument("host");
|
fitnesseHostAddress = commandLine.getArgument("host");
|
||||||
|
else
|
||||||
|
fitnesseHostAddress = host;
|
||||||
fitnessePort = Integer.parseInt(commandLine.getArgument("port"));
|
fitnessePort = Integer.parseInt(commandLine.getArgument("port"));
|
||||||
socketToken = Integer.parseInt(commandLine.getArgument("socketToken"));
|
socketToken = Integer.parseInt(commandLine.getArgument("socketToken"));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue