Merge "Error out early on nonstandard JDK directory layouts" am: 506113d267 am: e95cf75293

am: 1ac51c013e

* commit '1ac51c013e134c7a22580f9020e3b89851153a7e':
  Error out early on nonstandard JDK directory layouts
This commit is contained in:
Colin Cross 2015-10-27 23:27:47 +00:00 committed by android-build-merger
commit a9373f8e24
2 changed files with 2 additions and 2 deletions

View File

@ -539,7 +539,7 @@ HOST_JDK_TOOLS_JAR:= $(shell $(BUILD_SYSTEM)/find-jdk-tools-jar.sh)
ifneq ($(HOST_JDK_TOOLS_JAR),)
ifeq ($(wildcard $(HOST_JDK_TOOLS_JAR)),)
$(error Error: could not find jdk tools.jar, please check if your JDK was installed correctly)
$(error Error: could not find jdk tools.jar at $(HOST_JDK_TOOLS_JAR), please check if your JDK was installed correctly)
endif
endif

View File

@ -16,5 +16,5 @@ else
LSLINE=$(ls -l "$JAVAC")
JAVAC=$(echo -n "$LSLINE" | sed -e "s/.* -> //")
done
echo $JAVAC | sed -e "s:\(.*\)/bin/javac.*:\\1/lib/tools.jar:"
echo $JAVAC | sed -e 's:\(.*\)/javac$:\1/../lib/tools.jar:'
fi