aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1200572 - /aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java
Date Thu, 10 Nov 2011 21:35:50 GMT
Author: dkulp
Date: Thu Nov 10 21:35:50 2011
New Revision: 1200572

URL: http://svn.apache.org/viewvc?rev=1200572&view=rev
Log:
[ARIES-626] Part 1 - Set the systemId of the StreamSource so that schemas with relative includes
can resolve the relative includes.   Solves the "simple" issue, the external includes still
needs a LOT more work.

Modified:
    aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java

Modified: aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java?rev=1200572&r1=1200571&r2=1200572&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java
(original)
+++ aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java
Thu Nov 10 21:35:50 2011
@@ -239,7 +239,7 @@ public class NamespaceHandlerRegistryImp
                     if (url == null) {
                         LOGGER.warn("No URL is defined for schema " + ns + ". This schema
will not be validated");
                     } else {
-                        schemaSources.add(new StreamSource(url.openStream()));
+                        schemaSources.add(new StreamSource(url.openStream(), url.toExternalForm()));
                     }
                 }
                 schema = getSchemaFactory().newSchema(schemaSources.toArray(new Source[schemaSources.size()]));



Mime
View raw message