From 49c1db3d7e896ee63083a18122d64106d152d855 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 18 Dec 2012 09:58:18 +0800 Subject: [PATCH] IDEMPIERE-206 Integrate fitnesse with iDempiere. Allow overriding of fitnesse server host address. --- fitnesse/src/fitnesse/client/FitServerServletInvoker.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fitnesse/src/fitnesse/client/FitServerServletInvoker.java b/fitnesse/src/fitnesse/client/FitServerServletInvoker.java index 62bab55f4f..2a87b0d9df 100644 --- a/fitnesse/src/fitnesse/client/FitServerServletInvoker.java +++ b/fitnesse/src/fitnesse/client/FitServerServletInvoker.java @@ -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 {