diff options
author | vamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-18 10:27:33 +0000 |
---|---|---|
committer | vamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-18 10:27:33 +0000 |
commit | 46ed3e11fd047206b9a6606f811d9d8ea91b7acb (patch) | |
tree | 43168ab06eaa47705ca1d6252d0d4994ecaac047 /branches | |
parent | 798c795fb543e72dda001f41ce6cfc420e97eb57 (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.java | 4 |
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; } } |