summaryrefslogtreecommitdiffstats
path: root/branches/sca-android/modules
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-09-17 06:23:44 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-09-17 06:23:44 +0000
commit090149ae2f0b5e1e5afe70b51725395639efbdc1 (patch)
tree35c02e85dd5e0ffed3af8140c0be887b37165af6 /branches/sca-android/modules
parentd2cb32e2feca927b7385138890529ceaa735b2b8 (diff)
TUSCANY-2598: Apply fix from Dave Sowerby to support zip protocol type
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@696169 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-android/modules')
-rw-r--r--branches/sca-android/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/branches/sca-android/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java b/branches/sca-android/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
index 36069bb7ee..a8a076a602 100644
--- a/branches/sca-android/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
+++ b/branches/sca-android/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
@@ -273,6 +273,12 @@ public class NodeImpl implements SCANode, SCAClient {
// workaround for evil url/uri from maven
contributionURL = FileHelper.toFile(new URL(location)).toURI().toURL();
+ } else if ("zip".equals(protocol)) {
+ // See https://issues.apache.org/jira/browse/TUSCANY-2598
+ // zip contribution, remove the zip prefix and pad with file:
+ String location = "file:"+url.substring(4, url.lastIndexOf("!/"));
+ contributionURL = FileHelper.toFile(new URL(location)).toURI().toURL();
+
} else if (protocol != null && (protocol.equals("bundle") || protocol.equals("bundleresource"))) {
contributionURL =
new URL(contributionArtifactURL.getProtocol(), contributionArtifactURL.getHost(),