Apache Solr open-source search software
LUCENE-4949: Make the version prefix ("SNAPSHOT") separately configurable to enable Jenkins use its BUILD_ID variable, cleanup code duplication
Uwe Schindler8bf0797a2297
diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex a76bda759ce..c4c81262bf6 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -47,13 +47,22 @@<format property="dateversion" pattern="yyyy.MM.dd.HH.mm.ss" /></tstamp>- <property name="name" value="${ant.project.name}"/><property name="Name" value="Lucene"/>- <property name="dev.version" value="5.0-SNAPSHOT"/>++ <property name="name" value="${ant.project.name}"/><property name="tests.luceneMatchVersion" value="5.0"/>+ <property name="dev.version.base" value="5.0"/>+ <property name="dev.version.suffix" value="SNAPSHOT"/>+ <property name="dev.version" value="${dev.version.base}-${dev.version.suffix}"/><property name="version" value="${dev.version}"/><property name="spec.version" value="${version}"/>+<property name="year" value="2000-${current.year}"/>++ <!-- Lucene modules unfortunately don't have the "lucene-" prefix, so we add it if no prefix is given in $name: -->+ <condition property="final.name" value="${name}-${version}">+ <matches pattern="^(lucene|solr)\b" string="${name}"/>+ </condition><property name="final.name" value="lucene-${name}-${version}"/><!-- we exclude ext/*.jar because we don't want example/lib/ext logging jars on the cp -->diff --git a/solr/common-build.xml b/solr/common-build.xmlindex 9e483f69e5d..cc7336bc289 100644--- a/solr/common-build.xml+++ b/solr/common-build.xml@@ -24,10 +24,6 @@<dirname file="${ant.file.common-solr}" property="common-solr.dir"/><property name="Name" value="Solr" />- <property name="version" value="5.0-SNAPSHOT"/>- <property name="fullname" value="${ant.project.name}"/>- <property name="fullnamever" value="${fullname}-${version}"/>- <property name="final.name" value="${fullnamever}"/><!-- solr uses 1.7 --><property name="javac.source" value="1.7"/>@@ -50,6 +46,9 @@<import file="${common-solr.dir}/../lucene/module-build.xml"/>+ <!-- backwards compatibility with existing targets/tasks; TODO: remove this! -->+ <property name="fullnamever" value="${final.name}"/>+<path id="additional.dependencies"><fileset dir="${common-solr.dir}/core/lib" excludes="${common.classpath.excludes}"/><fileset dir="${common-solr.dir}/solrj/lib" excludes="${common.classpath.excludes}"/>