summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-07-03 19:03:36 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-07-03 19:03:36 +0000
commit5b790fc2c3bab62a1ba97a7d921e2466e3f6304c (patch)
tree2d25c17ae426a244aa6f0947ef4a6bb38e7e29db
parent6fe9edff0d7f25aa48a4843b7a9e80210ce1d379 (diff)
Don't use url for systemId as it fails when url is for a nested ear resource as the archive: protocol isn't known to woodstock url handler. As far as i can see we don't need the systemId for anything and the build is working fine without it
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@790985 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java2
-rw-r--r--branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java b/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java
index 6a4bc2ba23..7681115149 100644
--- a/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java
+++ b/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java
@@ -80,7 +80,7 @@ public class ComponentTypeDocumentProcessor extends BaseAssemblyProcessor implem
URLConnection connection = url.openConnection();
connection.setUseCaches(false);
urlStream = connection.getInputStream();
- XMLStreamReader reader = inputFactory.createXMLStreamReader(url.toString(), urlStream);
+ XMLStreamReader reader = inputFactory.createXMLStreamReader(urlStream);
reader.nextTag();
// Reader the componentType model
diff --git a/branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java b/branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java
index f74a87d890..f67004ba4d 100644
--- a/branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java
+++ b/branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java
@@ -97,7 +97,7 @@ public class ContributionMetadataDocumentProcessor implements URLArtifactProcess
URLConnection connection = url.openConnection();
connection.setUseCaches(false);
urlStream = connection.getInputStream();
- XMLStreamReader reader = inputFactory.createXMLStreamReader(url.toString(), urlStream);
+ XMLStreamReader reader = inputFactory.createXMLStreamReader(urlStream);
reader.nextTag();
// Read the contribution model