Permalink
Browse files

Better error for people without ivy installed.

  • Loading branch information...
1 parent c1e8217 commit 97fd2a092bce2405dcdaec314f652becb83246c8 @paulp committed Mar 25, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 ivy-classpath
View
@@ -6,6 +6,22 @@
# Todo - make it possible to leave out lots more
#
+if ! which ivy >/dev/null; then
+ cat <<"EOM"
+Error: no `ivy` command line program found.
+
+On OSX with homebrew, you can 'brew install ivy', otherwise
+save the following as executable 'ivy' and place it on your path.
+
+#!/bin/sh
+#
+
+cd /path/to/ivy/distribution && java $JAVA_OPTS -jar ivy-2.2.0.jar "$@"
+
+EOM
+ exit 1
+fi
+
prog="$(basename $0)"
unset verbose

0 comments on commit 97fd2a0

Please sign in to comment.