From a6c5fe9f3a65c3d1dd7b4c968b46718ba1866b7f Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 9 Apr 2013 13:51:01 +0000 Subject: [PATCH] SOLR-4677: Improve Solrs use of spec version git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1466031 13f79535-47bb-0310-9956-ffa450edef68 --- dev-tools/scripts/smokeTestRelease.py | 4 ++++ solr/common-build.xml | 12 +----------- solr/webapp/build.xml | 2 +- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py index f97aca6179c..d8c9fd970d0 100644 --- a/dev-tools/scripts/smokeTestRelease.py +++ b/dev-tools/scripts/smokeTestRelease.py @@ -182,12 +182,16 @@ def checkJARMetaData(desc, jarFile, version): s = decodeUTF8(z.read(MANIFEST_FILE_NAME)) for verify in ( + 'Specification-Vendor: The Apache Software Foundation', 'Implementation-Vendor: The Apache Software Foundation', # Make sure 1.7 compiler was used to build release bits: 'X-Compile-Source-JDK: 1.7', + # Make sure 1.8 ant was used to build release bits: (this will match 1.8+) + 'Ant-Version: Apache Ant 1.8', # 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: + 'Implementation-Version: %s' % version, 'Specification-Version: %s' % version, # Make sure the release was compiled with 1.7: 'Created-By: 1.7'): diff --git a/solr/common-build.xml b/solr/common-build.xml index 4c3ffb87467..9e483f69e5d 100644 --- a/solr/common-build.xml +++ b/solr/common-build.xml @@ -58,16 +58,6 @@ - - - @@ -169,7 +159,7 @@ - + diff --git a/solr/webapp/build.xml b/solr/webapp/build.xml index 82a5811a144..695a6cff29a 100644 --- a/solr/webapp/build.xml +++ b/solr/webapp/build.xml @@ -42,7 +42,7 @@ depends="test, init-dist, dist-core, dist-solrj, lucene-jars-to-solr"> + spec.version="${spec.version}"/>