diff options
Diffstat (limited to '')
-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; } } |