summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-02-24 13:19:00 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-02-24 13:19:00 +0000
commit101d314ce798d273b772108a8c43742365f2fe22 (patch)
treecec042192d6e0ce4f01180c78c1262f2c475ec1a /java
parent042a2c37d38e830bf055e765df520e62b02bc621 (diff)
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
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java11
1 files changed, 9 insertions, 2 deletions
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;
}