diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-14 09:42:48 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-14 09:42:48 +0000 |
commit | 5d8998148b1de990559f6617f09b518d3ab324fe (patch) | |
tree | d7d15460b5dec003768efb598c4251ffa09627d8 /sca-java-2.x/trunk/modules/domain-node/src/main/java | |
parent | c23d51cb0fc9c129bbd912bf9d475ef9430e16b2 (diff) |
Update to support a contribution exploded (unzipped) into a file system directory
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1135438 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node/src/main/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java index 5d84933374..4795fbe780 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/TuscanyRuntime.java @@ -194,12 +194,15 @@ public class TuscanyRuntime { DomainRegistry domainRegistry = domainRegistryFactory.getEndpointRegistry(domainURI, domainName); Node node = new NodeImpl(deployer, compositeActivator, domainRegistry, extensionPointRegistry, null); - - + List<String> installed = new ArrayList<String>(); for (File f : directory.listFiles()) { if (f.getName().endsWith(".jar") || f.getName().endsWith(".zip") || (f.isDirectory() && !f.getName().startsWith("."))) { String fn = f.getName().lastIndexOf('.') == -1 ? f.getName() : f.getName().substring(0, f.getName().lastIndexOf('.')); + // ignore the contribution if it has an associated exploded folder version + if (!f.isDirectory() && new File(f.getParent(), fn).isDirectory()) { + continue; + } String metaData = null; for (File f2 : directory.listFiles()) { if (f2.getName().startsWith(fn) && f2.getName().endsWith(".xml")) { |