summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2015-03-04 16:41:11 +0100
committerAndrew Branson <andrew.branson@cern.ch>2015-03-04 16:41:11 +0100
commitad282071d72c65498ab3b015073261731aab9b98 (patch)
treed269093b59d9dc9b35868a6ec6f875001ff02baf /src
parent09d7263da6785734be3987e606eb1f2244f733f7 (diff)
Move client script execution to setup(), so all of the Gateway objects
are in place before they are run.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/c2kernel/process/Gateway.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/c2kernel/process/Gateway.java b/src/main/java/com/c2kernel/process/Gateway.java
index 5ad6e87..2ce4d26 100644
--- a/src/main/java/com/c2kernel/process/Gateway.java
+++ b/src/main/java/com/c2kernel/process/Gateway.java
@@ -115,9 +115,6 @@ public class Gateway
Language.isTranlated=true;
Language.mTableOfTranslation = FileStringUtility.loadLanguageFile(languageFile);
}
-
- // if client, run module startup scripts. Otherwise bootstrap will do it after all imports
- if (!AbstractMain.runningAsWrapper) mModules.runScripts("startup");
}
/**
@@ -314,6 +311,9 @@ public class Gateway
// Init storages
mStorage = new TransactionManager();
mProxyManager = new EntityProxyManager();
+
+ // if client, run module startup scripts. Otherwise bootstrap will do it after all imports
+ if (!AbstractMain.runningAsWrapper) mModules.runScripts("startup");
}