mirror of https://github.com/apache/lucene.git
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
This commit is contained in:
parent
2b6e3dd7ad
commit
25bd58b826
|
@ -188,7 +188,9 @@ def checkJARMetaData(desc, jarFile, version):
|
||||||
# Make sure .class files are 1.7 format:
|
# Make sure .class files are 1.7 format:
|
||||||
'X-Compile-Target-JDK: 1.7',
|
'X-Compile-Target-JDK: 1.7',
|
||||||
# Make sure this matches the version we think we are releasing:
|
# 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:
|
if s.find(verify) == -1:
|
||||||
raise RuntimeError('%s is missing "%s" inside its META-INF/MANIFES.MF' % \
|
raise RuntimeError('%s is missing "%s" inside its META-INF/MANIFES.MF' % \
|
||||||
(desc, verify))
|
(desc, verify))
|
||||||
|
|
Loading…
Reference in New Issue