tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r747374 - /tuscany/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java
Date Tue, 24 Feb 2009 13:19:00 GMT
Author: antelder
Date: Tue Feb 24 13:19:00 2009
New Revision: 747374

URL: http://svn.apache.org/viewvc?rev=747374&view=rev
Log:
TUSCANY-2869: work around the Saxon xpath jar meta-inf/services problem

Modified:
    tuscany/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java

Modified: tuscany/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java?rev=747374&r1=747373&r2=747374&view=diff
==============================================================================
--- tuscany/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java
(original)
+++ tuscany/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java
Tue Feb 24 13:19:00 2009
@@ -141,8 +141,15 @@
         } 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;
             }



Mime
View raw message