Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better error for people without ivy installed.

  • Loading branch information...
commit 97fd2a092bce2405dcdaec314f652becb83246c8 1 parent c1e8217
Paul Phillips authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 ivy-classpath
16 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
Please sign in to comment.
Something went wrong with that request. Please try again.