diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-25 10:07:57 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-25 10:07:57 +0000 |
commit | afa7a3e9b1c9e5beb17d5ed585f31b79a84bcef0 (patch) | |
tree | c665e2c67ed3d933fe1c2fb5990544da4e9e10d3 /sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/src/main/java | |
parent | 7ca235a3a0e21079631499e8cd2d759899257aa1 (diff) |
Refactor payment-bpel contribution by moving some files into a new contribution payment-bpel-process (TUSCANY-3461)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@916213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/src/main/java')
-rw-r--r-- | sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java b/sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java index 828ee58bf3..0cae436c82 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java +++ b/sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java @@ -46,7 +46,11 @@ public class LauncherUtil { // Try to use the contribution jar under the contributions folder of the distribution file = new File("../contributions/scatours-contribution-" + name + ".jar"); if (!file.exists()) { - throw new IllegalArgumentException("Contribution " + name + " cannot be located."); + // Try to use the contribution subfolder under the contributions folder of the distribution + file = new File("../contributions/scatours-contribution-" + name); + if (!file.exists()) { + throw new IllegalArgumentException("Contribution " + name + " cannot be located."); + } } } } |