IDEMPIERE-206 Integrate fitnesse with iDempiere. Allow overriding of fitnesse server host address.

This commit is contained in:
Heng Sin Low 2012-12-18 09:58:18 +08:00
parent 74ad6793cb
commit 49c1db3d7e
1 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,11 @@ public class FitServerServletInvoker extends ServletInvoker {
CommandLine commandLine = new CommandLine("url host port socketToken");
if (commandLine.parse(argv)) {
servletUrl = commandLine.getArgument("url");
fitnesseHostAddress = commandLine.getArgument("host");
String host = System.getProperty("FITNESSE_HOST");
if (host == null || host.trim().length() == 0)
fitnesseHostAddress = commandLine.getArgument("host");
else
fitnesseHostAddress = host;
fitnessePort = Integer.parseInt(commandLine.getArgument("port"));
socketToken = Integer.parseInt(commandLine.getArgument("socketToken"));
} else {