Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-1123: Allow overriding the specification version for MANIFEST.MF

Michael Busch7d2ffdb8f70c
diff --git a/CHANGES.txt b/CHANGES.txt
index 716da8e944c..1b65ac576a6 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -398,6 +398,9 @@ Build
7. LUCENE-935: Allow to deploy maven artifacts to a remote m2 repository
via scp and ssh authentication. (Michael Busch)
+
+ 8. LUCENE-1123: Allow overriding the specification version for
+ MANIFEST.MF (Michael Busch)
Test Cases
diff --git a/common-build.xml b/common-build.xml
index f535fe2c0d5..d9ce96466e9 100644
--- a/common-build.xml
+++ b/common-build.xml
@@ -41,6 +41,7 @@
<property name="name" value="${ant.project.name}"/>
<property name="Name" value="Lucene"/>
<property name="version" value="2.4-dev"/>
+ <property name="spec.version" value="${version}"/>
<property name="year" value="2000-${current.year}"/>
<property name="final.name" value="lucene-${name}-${version}"/>
@@ -270,7 +271,7 @@
<manifest file="${manifest.file}">
<attribute name="Specification-Title" value="@{title}"/>
<!-- spec version must match "digit+{.digit+}*" -->
- <attribute name="Specification-Version" value="${version}"/>
+ <attribute name="Specification-Version" value="${spec.version}"/>
<attribute name="Specification-Vendor"
value="The Apache Software Foundation"/>
<attribute name="Implementation-Title" value="org.apache.lucene"/>
@@ -538,3 +539,4 @@
+