diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-30 08:56:06 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-30 08:56:06 +0000 |
commit | 14eb7b3ce33bde475adae2e2c7952ab536d81a2b (patch) | |
tree | d9eb73c227379f3caf385ccd2af29f37f68c60b4 /sca-java-1.x/trunk | |
parent | 550ef20ecafec83daa2ef86f39c2a57ddfc68e51 (diff) |
Pull the configuration location from the first argument if one is provided.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@885358 13f79535-47bb-0310-9956-ffa450edef68
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.java | 9 |
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) { |