diff options
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."); + } } } } |