You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by bu...@apache.org on 2008/11/11 03:31:51 UTC
svn commit: r712920 - in /lucene/java/trunk: CHANGES.txt build.xml
common-build.xml
Author: buschmi
Date: Mon Nov 10 18:31:50 2008
New Revision: 712920
URL: http://svn.apache.org/viewvc?rev=712920&view=rev
Log:
LUCENE-1446: Add compatibility tag to common-build.xml and run backwards-compatibility tests in the nightly build.
Modified:
lucene/java/trunk/CHANGES.txt
lucene/java/trunk/build.xml
lucene/java/trunk/common-build.xml (contents, props changed)
Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=712920&r1=712919&r2=712920&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Mon Nov 10 18:31:50 2008
@@ -82,6 +82,9 @@
and executing the junit testcases from an older release for
backwards-compatibility testing. (Michael Busch)
+ 2. LUCENE-1446: Add compatibility tag to common-build.xml and run
+ backwards-compatibility tests in the nightly build. (Michael Busch)
+
Test Cases
======================= Release 2.4.0 2008-10-06 =======================
Modified: lucene/java/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=712920&r1=712919&r2=712920&view=diff
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Mon Nov 10 18:31:50 2008
@@ -89,7 +89,7 @@
description="Runs all unit tests (including contribs)"
/>
- <property name="tag" value="lucene_2_4_0"/>
+ <property name="tag" value="${compatibility.tag}"/>
<path id="tag.test.classpath">
<path refid="demo.classpath"/>
@@ -110,7 +110,7 @@
<sequential>
<mkdir dir="${tags.dir}/${tag}"/>
<exec dir="${tags.dir}/${tag}" executable="svn"
- failifexecutionfails="true">
+ failifexecutionfails="false">
<arg line="checkout http://svn.apache.org/repos/asf/lucene/java/tags/${tag}/src/test/"/>
</exec>
</sequential>
@@ -119,6 +119,11 @@
<target name="test-tag" depends="download-tag, compile-core, compile-demo"
description="Runs tests of a previous Lucene version. Specify tag version like this: -Dtag=lucene_2_4_0">
<sequential>
+ <available property="tag.available" file="${tags.dir}/${tag}/test" />
+
+ <fail unless="tag.available">
+ Specified tag '${tag}' could not be found in directory '${tags.dir}/${tag}'.
+ </fail>
<mkdir dir="${build.dir}/${tag}/test"/>
<compile-test-macro srcdir="${tags.dir}/${tag}/test" destdir="${build.dir}/${tag}/classes/test"
test.classpath="tag.test.classpath"/>
@@ -353,7 +358,7 @@
</copy>
</target>
- <target name="nightly" depends="test, package-tgz, changes-to-html">
+ <target name="nightly" depends="test, test-tag, package-tgz, changes-to-html">
</target>
<!-- ================================================================== -->
Modified: lucene/java/trunk/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/common-build.xml?rev=712920&r1=712919&r2=712920&view=diff
==============================================================================
--- lucene/java/trunk/common-build.xml (original)
+++ lucene/java/trunk/common-build.xml Mon Nov 10 18:31:50 2008
@@ -41,6 +41,7 @@
<property name="name" value="${ant.project.name}"/>
<property name="Name" value="Lucene"/>
<property name="version" value="2.9-dev"/>
+ <property name="compatibility.tag" value="lucene_2_4_0"/>
<property name="spec.version" value="${version}"/>
<property name="year" value="2000-${current.year}"/>
<property name="final.name" value="lucene-${name}-${version}"/>
Propchange: lucene/java/trunk/common-build.xml
------------------------------------------------------------------------------
svn:eol-style = native