summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/trunk')
-rw-r--r--sca-java-1.x/trunk/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/DomainManagerLauncher.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/DomainManagerLauncher.java b/sca-java-1.x/trunk/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/DomainManagerLauncher.java
index eb06ad7411..21a1230200 100644
--- a/sca-java-1.x/trunk/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/DomainManagerLauncher.java
+++ b/sca-java-1.x/trunk/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/DomainManagerLauncher.java
@@ -77,13 +77,20 @@ public class DomainManagerLauncher {
// Create a launcher
DomainManagerLauncher launcher = newInstance();
+ // get the root directory as the one and only parameter
+ String rootDirectory = ".";
+
+ if (args.length > 0){
+ rootDirectory = args[0];
+ }
+
Object domainManager = null;
ShutdownThread shutdown = null;
try {
while (true) {
// Start the domain manager
- domainManager = launcher.createDomainManager();
+ domainManager = launcher.createDomainManager(rootDirectory);
try {
domainManager.getClass().getMethod("start").invoke(domainManager);
} catch (Exception e) {