Apache Lucene open-source search software
LUCENE-2206: make svn checkout consistent with trunk and make the test pass if the whole checkout was not done
Uwe Schindler66dd0ae4b8d3
diff --git a/contrib/snowball/build.xml b/contrib/snowball/build.xmlindex f0fb5f02985..552b4416e18 100644--- a/contrib/snowball/build.xml+++ b/contrib/snowball/build.xml@@ -147,10 +147,9 @@description="Downloads Snowball vocabulary tests"><sequential><mkdir dir="${vocab.dir}"/>- <exec dir="${vocab.dir}" executable="${svn.exe}"- failifexecutionfails="false">+ <exec dir="${vocab.dir}" executable="${svn.exe}" failifexecutionfails="false" failonerror="true"><arg line="checkout -r ${snowball.vocab.rev} ${snowball.vocab.url}"/>- </exec>- </sequential>+ </exec>+ </sequential></target></project>diff --git a/contrib/snowball/src/test/org/apache/lucene/analysis/snowball/TestSnowballVocab.java b/contrib/snowball/src/test/org/apache/lucene/analysis/snowball/TestSnowballVocab.javaindex 4d9a89b63dc..b349e771e01 100644--- a/contrib/snowball/src/test/org/apache/lucene/analysis/snowball/TestSnowballVocab.java+++ b/contrib/snowball/src/test/org/apache/lucene/analysis/snowball/TestSnowballVocab.java@@ -43,6 +43,10 @@ public class TestSnowballVocab extends BaseTokenStreamTestCase {* Run all languages against their snowball vocabulary tests.*/public void testStemmers() throws IOException {+ if (!dataRoot.exists()) {+ System.err.println("WARN: This test was disabled, as the svn checkout of snowball test files is not supported on your system!");+ return;+ }assertCorrectOutput("Danish", "danish");assertCorrectOutput("Dutch", "dutch");assertCorrectOutput("English", "english");