From 25bd58b826b80ef88ddae416791d1fe6ea7159ec Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 26 Mar 2013 11:56:55 +0000 Subject: [PATCH] make sure Java 1.7 was used to compile the JARs in binary release git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1461067 13f79535-47bb-0310-9956-ffa450edef68 --- dev-tools/scripts/smokeTestRelease.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py index 631421a4ff5..f294382a80b 100644 --- a/dev-tools/scripts/smokeTestRelease.py +++ b/dev-tools/scripts/smokeTestRelease.py @@ -188,7 +188,9 @@ def checkJARMetaData(desc, jarFile, version): # Make sure .class files are 1.7 format: 'X-Compile-Target-JDK: 1.7', # Make sure this matches the version we think we are releasing: - 'Specification-Version: %s' % version): + 'Specification-Version: %s' % version, + # Make sure the release was compiled with 1.7: + 'Created-By: 1.7'): if s.find(verify) == -1: raise RuntimeError('%s is missing "%s" inside its META-INF/MANIFES.MF' % \ (desc, verify))