7109885: security baseline for 7u2 or above is not set correctly
authorngthomas
Sun, 13 Nov 2011 21:39:57 -0800
changeset 11217 76f62fffcaf6
parent 10777 c049b778ca61
child 11218 214d7b804fd4
7109885: security baseline for 7u2 or above is not set correctly Reviewed-by: ccheung, igor, ohair
jdk/make/common/shared/Sanity.gmk
--- a/jdk/make/common/shared/Sanity.gmk	Thu Oct 27 13:54:42 2011 -0700
+++ b/jdk/make/common/shared/Sanity.gmk	Sun Nov 13 21:39:57 2011 -0800
@@ -1608,6 +1608,31 @@
 	fi
 endif
 
+######################################################
+# SECURITY_BASELINE_170 test
+######################################################
+security_baseline_170:
+ifeq ($(PLATFORM), windows)
+	@if [ -z "$(SECURITY_BASELINE_170)" ]; then \
+	    $(ECHO) "WARNING: Your SECURITY_BASELINE_170 setting is empty.\n" \
+		"        Setting it to the default value of 1.7.0_01.\n" \
+		"        It is recommended to set SECURITY_BASELINE_170.\n" \
+		"" >> $(WARNING_FILE) ; \
+	fi
+endif
+
+######################################################
+# SECURITY_BASELINE_180 test
+######################################################
+security_baseline_180:
+ifeq ($(PLATFORM), windows)
+	@if [ -z "$(SECURITY_BASELINE_180)" ]; then \
+	    $(ECHO) "WARNING: Your SECURITY_BASELINE_180 setting is empty.\n" \
+		"        Setting it to the default value of 1.8.0.\n" \
+		"        It is recommended to set SECURITY_BASELINE_180.\n" \
+		"" >> $(WARNING_FILE) ; \
+	fi
+endif
 
 ######################################################
 # this should be the last rule in any target's sanity rule.