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
This commit is contained in:
parent
392c8fd7a8
commit
5950b7004d
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue