summaryrefslogtreecommitdiffstats
path: root/core/find-jdk-tools-jar.sh
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-04-26 18:36:52 -0700
committerYing Wang <wangying@google.com>2010-07-20 16:30:40 -0700
commitec5e729fcf692a17285eb66f8f28ed9b236216dd (patch)
treee31b265fcdf3d2187b39c656f35ce9ff7b84ac23 /core/find-jdk-tools-jar.sh
parent0bd59a0a58f9891926ff6faf74a78307230d705b (diff)
downloadbuild-ec5e729fcf692a17285eb66f8f28ed9b236216dd.zip
build-ec5e729fcf692a17285eb66f8f28ed9b236216dd.tar.gz
build-ec5e729fcf692a17285eb66f8f28ed9b236216dd.tar.bz2
Make build/core/find-jdk-tools-jar.sh fail more explicitly
http://b/issue?id=1505957 Before this change, if tools.jar can not be found, make reports error like: make: *** No rule to make target `Please-install-JDK-5.0,-update-12-or-higher,-which-you-can-download-from-java.sun.com'... With this change, the error message is much nicer: build/core/config.mk:264: *** Error: could not find jdk tools.jar, please install JDK-5.0, update 12 or higher, which you can download from java.sun.com. Stop. Change-Id: Id33cfb6ee7676d66f00d0a41d07c1f27abc6a402
Diffstat (limited to 'core/find-jdk-tools-jar.sh')
-rwxr-xr-xcore/find-jdk-tools-jar.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/find-jdk-tools-jar.sh b/core/find-jdk-tools-jar.sh
index 4c40627..f21c48b 100755
--- a/core/find-jdk-tools-jar.sh
+++ b/core/find-jdk-tools-jar.sh
@@ -3,7 +3,6 @@ if [ "x$ANDROID_JAVA_HOME" != x ] && [ -e "$ANDROID_JAVA_HOME/lib/tools.jar" ] ;
else
JAVAC=$(which javac)
if [ -z "$JAVAC" ] ; then
- echo "Please-install-JDK-5.0,-update-12-or-higher,-which-you-can-download-from-java.sun.com"
exit 1
fi
while [ -L $JAVAC ] ; do