summaryrefslogtreecommitdiffstats
path: root/java/sca/modules
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-04-03 10:58:38 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-04-03 10:58:38 +0000
commitd806724fc4324d153843b331b852ca535abc48d7 (patch)
treebf60cf98f946b9251081c255db60f561cc7655fb /java/sca/modules
parentb5eb79d95ec261c8c5572a23b3eb3133a8c1f664 (diff)
Add contribution with nested jar jar support to contribution class loader
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@761611 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
-rw-r--r--java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoader.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoader.java b/java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoader.java
index 008bfec31a..97d8dcff73 100644
--- a/java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoader.java
+++ b/java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoader.java
@@ -55,7 +55,10 @@ public class ContributionClassLoader extends URLClassLoader {
if (contribution.getLocation() != null) {
try {
this.addURL(new URL(contribution.getLocation()));
- } catch (MalformedURLException e) {
+ for (URL url : ContributionHelper.getNestedJarUrls(contribution)) {
+ this.addURL(url);
+ }
+ } catch (IOException e) {
throw new RuntimeException(e);
}
}