summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorvamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68>2009-03-18 10:27:33 +0000
committervamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68>2009-03-18 10:27:33 +0000
commit46ed3e11fd047206b9a6606f811d9d8ea91b7acb (patch)
tree43168ab06eaa47705ca1d6252d0d4994ecaac047 /branches
parent798c795fb543e72dda001f41ce6cfc420e97eb57 (diff)
Make the artifactURI "" resolve to the sourceURL.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@755536 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches')
-rw-r--r--branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/JarContributionProcessor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/JarContributionProcessor.java b/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/JarContributionProcessor.java
index 3df275a7a1..3ceb8c2b69 100644
--- a/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/JarContributionProcessor.java
+++ b/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/JarContributionProcessor.java
@@ -52,8 +52,10 @@ public class JarContributionProcessor implements PackageProcessor {
public URL getArtifactURL(URL sourceURL, URI artifact) throws MalformedURLException {
if (sourceURL.toString().startsWith("jar:")) {
return new URL(sourceURL, artifact.toString());
- } else {
+ } else if(!artifact.toString().equals("")) {
return new URL("jar:" + sourceURL.toExternalForm() + "!/" + artifact);
+ } else {
+ return sourceURL;
}
}