You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2013/05/16 17:15:59 UTC

svn commit: r1483404 - in /lucene/dev/branches/lucene_solr_4_3: ./ lucene/ lucene/common-build.xml solr/ solr/common-build.xml

Author: shalin
Date: Thu May 16 15:15:59 2013
New Revision: 1483404

URL: http://svn.apache.org/r1483404
Log:
LUCENE-4949: Make the version prefix (SNAPSHOT) separately configurable to enable Jenkins use its BUILD_ID variable, cleanup code duplication (merged from branch_4x r1470978)

Modified:
    lucene/dev/branches/lucene_solr_4_3/   (props changed)
    lucene/dev/branches/lucene_solr_4_3/lucene/   (props changed)
    lucene/dev/branches/lucene_solr_4_3/lucene/common-build.xml   (contents, props changed)
    lucene/dev/branches/lucene_solr_4_3/solr/   (props changed)
    lucene/dev/branches/lucene_solr_4_3/solr/common-build.xml   (contents, props changed)

Modified: lucene/dev/branches/lucene_solr_4_3/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_3/lucene/common-build.xml?rev=1483404&r1=1483403&r2=1483404&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_3/lucene/common-build.xml (original)
+++ lucene/dev/branches/lucene_solr_4_3/lucene/common-build.xml Thu May 16 15:15:59 2013
@@ -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="4.3.1-SNAPSHOT"/>
+  
+  <property name="name" value="${ant.project.name}"/>
   <property name="tests.luceneMatchVersion" value="4.3"/>
+  <property name="dev.version.base" value="4.3.1"/>
+  <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 -->

Modified: lucene/dev/branches/lucene_solr_4_3/solr/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_3/solr/common-build.xml?rev=1483404&r1=1483403&r2=1483404&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_3/solr/common-build.xml (original)
+++ lucene/dev/branches/lucene_solr_4_3/solr/common-build.xml Thu May 16 15:15:59 2013
@@ -24,10 +24,6 @@
   <dirname file="${ant.file.common-solr}" property="common-solr.dir"/>
   
   <property name="Name" value="Solr" />
-  <property name="version" value="4.3.1-SNAPSHOT"/>
-  <property name="fullname" value="${ant.project.name}"/>
-  <property name="fullnamever" value="${fullname}-${version}"/>
-  <property name="final.name" value="${fullnamever}"/>
   
   <!-- solr uses 1.6 -->
   <property name="javac.source" value="1.6"/>
@@ -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}"/>