summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/node-impl/src/main
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-04-09 06:24:32 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-04-09 06:24:32 +0000
commit448d22fec77865f5bfa9a1cd9b4ae041b382b801 (patch)
treea8163c9d4e092054a05519a361cf8b7acfa99fad /branches/sca-java-1.x/modules/node-impl/src/main
parentca8e86acb460069101d2aa95ee299cc1800adc77 (diff)
TUSCANY-2862 - Further changes to handled folder contributions that have artifacts with space in the name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@763525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/node-impl/src/main')
-rw-r--r--branches/sca-java-1.x/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java b/branches/sca-java-1.x/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
index b0e5352d51..3c13804685 100644
--- a/branches/sca-java-1.x/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
+++ b/branches/sca-java-1.x/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
@@ -177,7 +177,12 @@ public class NodeImpl implements SCANode, SCAClient {
if (compositeURI != null) {
//URI uri = URI.create(compositeURI);
- URI uri = createURI(compositeURI);
+ URI uri;
+ try {
+ uri = new URI(null, compositeURI, null);
+ } catch (URISyntaxException e) {
+ throw new IllegalArgumentException("Invalid Composite URI: " + compositeURI, e);
+ }
if (uri.isAbsolute()) {
throw new IllegalArgumentException("Composite URI must be a resource name: " + compositeURI);