tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r960263 - /tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/impl/NodeImpl.java
Date Sat, 03 Jul 2010 19:42:23 GMT
Author: antelder
Date: Sat Jul  3 19:42:23 2010
New Revision: 960263

URL: http://svn.apache.org/viewvc?rev=960263&view=rev
Log:
Use IOHelper to create URI to avoid exceptions

Modified:
    tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/impl/NodeImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/impl/NodeImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/impl/NodeImpl.java?rev=960263&r1=960262&r2=960263&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/impl/NodeImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/impl/NodeImpl.java
Sat Jul  3 19:42:23 2010
@@ -84,7 +84,7 @@ public class NodeImpl implements Node {
     
     public void installContribution(String uri, String contributionURL, String metaDataURL,
List<String> dependentContributionURIs, boolean runDeployables) throws ContributionReadException,
ActivationException, ValidationException {
         Monitor monitor = deployer.createMonitor();
-        Contribution contribution = deployer.loadContribution(URI.create(uri), IOHelper.getLocationAsURL(contributionURL),
monitor);
+        Contribution contribution = deployer.loadContribution(IOHelper.createURI(uri), IOHelper.getLocationAsURL(contributionURL),
monitor);
         monitor.analyzeProblems();
         if (metaDataURL != null) {
             mergeContributionMetaData(metaDataURL, contribution);



Mime
View raw message