From 84c9892a6ca9a7a3f86c5e3af63910fb588f662c Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 25 Feb 2003 11:59:26 +0000 Subject: [PATCH] Fixed two bugs: * Race condition when applications were initialized before the Server constructor had returned and Server.server and thus Server.getServer() was null * Server choking on -i command line option telling the launcher class the Helma install location. --- src/helma/main/Server.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/helma/main/Server.java b/src/helma/main/Server.java index fc029263..f675c7fe 100644 --- a/src/helma/main/Server.java +++ b/src/helma/main/Server.java @@ -90,6 +90,9 @@ import org.apache.xmlrpc.*; // create new server instance server = new Server (args); + + // start the server main thread + server.start (); } /** @@ -137,6 +140,9 @@ import org.apache.xmlrpc.*; } catch (Exception portx) { usageError = true; } + } else if (args[i].equals ("-i") && i+1