OSDN Git Service

Add warning message for java6 builds.
authorNarayan Kamath <narayan@google.com>
Mon, 17 Feb 2014 18:09:13 +0000 (18:09 +0000)
committerNarayan Kamath <narayan@google.com>
Thu, 20 Mar 2014 10:35:52 +0000 (10:35 +0000)
Change-Id: If5a402e1412e5adb5340b101854e9fbb4c5d4ec8

core/main.mk

index 50703c2..4abc43a 100644 (file)
@@ -103,7 +103,7 @@ include $(BUILD_SYSTEM)/cleanbuild.mk
 # Include the google-specific config
 -include vendor/google/build/config.mk
 
-VERSION_CHECK_SEQUENCE_NUMBER := 3
+VERSION_CHECK_SEQUENCE_NUMBER := 4
 -include $(OUT_DIR)/versions_checked.mk
 ifneq ($(VERSION_CHECK_SEQUENCE_NUMBER),$(VERSIONS_CHECKED))
 
@@ -192,6 +192,17 @@ java_version := $(shell echo '$(java_version_str)' | grep '^java .*[ "]1\.6[\. "
 javac_version := $(shell echo '$(javac_version_str)' | head -n 1 | grep '[ "]1\.6[\. "$$]')
 endif # if EXPERIMENTAL_USE_JAVA7
 
+ifeq ($(required_javac_version), "1.6")
+$(info ************************************************************)
+$(info You are attempting to build with java 1.6.)
+$(info Java6 support for master builds will be dropped shortly,)
+$(info please upgrade to Java7 as soon as possible.)
+$(info $(space))
+$(info Visit go/android-java7-transition for details. )
+$(info $(space))
+$(info ************************************************************)
+endif
+
 ifeq ($(strip $(java_version)),)
 $(info ************************************************************)
 $(info You are attempting to build with the incorrect version)