From ee4b5c3f8db1f9445b9125a11dd436c4cba31825 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 18 Mar 2010 14:07:03 +0000 Subject: 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 --- .../main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sca-java-2.x/trunk/modules/assembly/src/main') 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); } -- cgit v1.2.3