From afa7a3e9b1c9e5beb17d5ed585f31b79a84bcef0 Mon Sep 17 00:00:00 2001 From: nash Date: Thu, 25 Feb 2010 10:07:57 +0000 Subject: 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 --- .../src/main/java/scatours/launcher/LauncherUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common') 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."); + } } } } -- cgit v1.2.3