From 5950b7004d0db77ae279b7b13c6c70821c3ec9c9 Mon Sep 17 00:00:00 2001 From: antelder Date: Sat, 15 May 2010 08:08:20 +0000 Subject: Decode the url to avoid problems with it inlcudes spaces in the path git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@944591 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/deployment/src') diff --git a/sca-java-2.x/trunk/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java b/sca-java-2.x/trunk/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java index 84f8ef63b2..f6166578d0 100644 --- a/sca-java-2.x/trunk/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java +++ b/sca-java-2.x/trunk/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java @@ -44,6 +44,7 @@ import org.apache.tuscany.sca.assembly.builder.BuilderExtensionPoint; import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; import org.apache.tuscany.sca.assembly.builder.CompositeBuilderException; import org.apache.tuscany.sca.assembly.xsd.Constants; +import org.apache.tuscany.sca.common.java.io.IOHelper; import org.apache.tuscany.sca.common.xml.stax.StAXHelper; import org.apache.tuscany.sca.contribution.Artifact; import org.apache.tuscany.sca.contribution.Contribution; @@ -401,7 +402,7 @@ public class DeployerImpl implements Deployer { XSDefinition scaSchema = xsdFactory.createXSDefinition(); scaSchema.setUnresolved(true); scaSchema.setNamespace(namespace); - scaSchema.setLocation(scaSchemaURL.toURI()); + scaSchema.setLocation(IOHelper.toURI(scaSchemaURL)); scaSchema.setUnresolved(false); // modelResolver.addModel(scaSchema, context); } else if (namespace.equals(Constants.SCA11_NS)) { @@ -410,7 +411,7 @@ public class DeployerImpl implements Deployer { XSDefinition scaSchema = xsdFactory.createXSDefinition(); scaSchema.setUnresolved(true); scaSchema.setNamespace(Constants.SCA11_NS); - scaSchema.setLocation(scaSchemaURL.toURI()); + scaSchema.setLocation(IOHelper.toURI(scaSchemaURL)); scaSchema.setUnresolved(false); modelResolver.addModel(scaSchema, context); } -- cgit v1.2.3