new argument order in Application constructor

This commit is contained in:
hns 2001-09-07 16:33:19 +00:00
parent 20955225d0
commit 0715a041a7
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ public class ApplicationManager {
private void start (String appName) { private void start (String appName) {
Server.getLogger().log ("Building application "+appName); Server.getLogger().log ("Building application "+appName);
try { try {
Application app = new Application (appName, Server.sysProps, Server.dbProps, hopHome); Application app = new Application (appName, hopHome, Server.sysProps, Server.dbProps);
applications.put (appName, app); applications.put (appName, app);
// if we're running with the embedded web server, set app base uri to /appname // if we're running with the embedded web server, set app base uri to /appname
if (server.websrv != null) if (server.websrv != null)

View file

@ -37,7 +37,7 @@ public class StandaloneServletClient extends AbstractServletClient {
File propfile = new File (serverProps); File propfile = new File (serverProps);
File hopHome = new File (propfile.getParent()); File hopHome = new File (propfile.getParent());
SystemProperties sysProps = new SystemProperties (propfile.getAbsolutePath()); SystemProperties sysProps = new SystemProperties (propfile.getAbsolutePath());
app = new Application (appName, sysProps, null, hopHome); app = new Application (appName, hopHome, sysProps, null);
app.start (); app.start ();
} catch (Exception x) { } catch (Exception x) {
System.err.println ("Error starting Application "+appName+": "+x); System.err.println ("Error starting Application "+appName+": "+x);