Skip to content

Commit

Permalink
WHIRR-156. Cli script doesn't launch post-modularization.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/incubator/whirr/trunk@1050471 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
tomwhite committed Dec 17, 2010
1 parent 905a6b5 commit 7e24ebe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.txt
Expand Up @@ -46,6 +46,9 @@ Trunk (unreleased changes)
WHIRR-123. Cassandra integration tests hang if whirr's scripts bucket is
missing. (tomwhite)

WHIRR-156. Cli script doesn't launch post-modularization. (Andrei Savu and
tomwhite via tomwhite)

Release 0.2.0 - 2010-11-04

NEW FEATURES
Expand Down
12 changes: 11 additions & 1 deletion bin/whirr
Expand Up @@ -18,4 +18,14 @@
bin=`dirname "$0"`
bin=`cd "$bin"; pwd`

java -jar $bin/../whirr-cli-*.jar "$@"
release_jar=$bin/../whirr-cli-*.jar
snapshot_jar=$bin/../cli/target/whirr-cli-*-SNAPSHOT.jar

if [ -f $release_jar ]; then
java -jar $release_jar "$@"
elif [ -f $snapshot_jar ]; then
java -jar $snapshot_jar "$@"
else
echo "No CLI JAR found."
exit 1
fi

0 comments on commit 7e24ebe

Please sign in to comment.