diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-18 14:07:03 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-18 14:07:03 +0000 |
commit | ee4b5c3f8db1f9445b9125a11dd436c4cba31825 (patch) | |
tree | c46efde6290500d345828e1a3a7a9c55755b5003 /sca-java-2.x/trunk/modules/assembly/src/main/java | |
parent | e6dd2473820de18188524ddb6f31e8b9bb4ebfa2 (diff) |
Update matching code to work with service URIs starting with a slash character
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@924786 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly/src/main/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java index 26663528f7..34ece5a24b 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java @@ -228,6 +228,9 @@ public class EndpointImpl implements Endpoint { * @return */ private static String[] parseServiceURI(String serviceURI) { + if (serviceURI.startsWith("/")) { + serviceURI = serviceURI.substring(1); + } if (serviceURI.contains("#")) { return parseStructuralURI(serviceURI); } |