From 101d314ce798d273b772108a8c43742365f2fe22 Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 24 Feb 2009 13:19:00 +0000 Subject: TUSCANY-2869: work around the Saxon xpath jar meta-inf/services problem git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@747374 13f79535-47bb-0310-9956-ffa450edef68 --- .../extensibility/ContextClassLoaderServiceDiscoverer.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'java/sca/modules') diff --git a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java index 918f7beebd..e90aa7c0d3 100644 --- a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java +++ b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java @@ -141,8 +141,15 @@ public class ContextClassLoaderServiceDiscoverer implements ServiceDiscoverer { } else { int j = declaration.indexOf('='); if (j == -1) { - attributes.put("class", declaration.trim()); - return attributes; + // TUSCANY-xxx: handle Saxon xpath jar funny + if (declaration.startsWith("http\\://")) { + int k = declaration.lastIndexOf(':'); + attributes.put("class", declaration.substring(k+1).trim()); + return attributes; + } else { + attributes.put("class", declaration.trim()); + return attributes; + } } else { declaration = ";" + declaration; } -- cgit v1.2.3