From e5aada052c59b11ab263d61dfc963d9b1735b538 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sat, 13 Mar 2010 16:48:40 +0000 Subject: [PATCH] fix the missing tempDir in trunk git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@922602 13f79535-47bb-0310-9956-ffa450edef68 --- common-build.xml | 2 +- src/test/org/apache/lucene/index/TestIndexReader.java | 4 +--- src/test/org/apache/lucene/store/TestDirectory.java | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/common-build.xml b/common-build.xml index c69c0d4ca55..d713155412b 100644 --- a/common-build.xml +++ b/common-build.xml @@ -43,7 +43,7 @@ - + diff --git a/src/test/org/apache/lucene/index/TestIndexReader.java b/src/test/org/apache/lucene/index/TestIndexReader.java index 0ba1beb6cf0..296ad079db0 100644 --- a/src/test/org/apache/lucene/index/TestIndexReader.java +++ b/src/test/org/apache/lucene/index/TestIndexReader.java @@ -507,9 +507,7 @@ public class TestIndexReader extends LuceneTestCase // Make sure you can set norms & commit even if a reader // is open against the index: public void testWritingNorms() throws IOException { - String tempDir = "target/test"; - - File indexDir = new File(tempDir, "lucenetestnormwriter"); + File indexDir = new File(System.getProperty("tempDir"), "lucenetestnormwriter"); Directory dir = FSDirectory.open(indexDir); IndexWriter writer; IndexReader reader; diff --git a/src/test/org/apache/lucene/store/TestDirectory.java b/src/test/org/apache/lucene/store/TestDirectory.java index 1e26ca4a272..64149a9a6c8 100644 --- a/src/test/org/apache/lucene/store/TestDirectory.java +++ b/src/test/org/apache/lucene/store/TestDirectory.java @@ -138,7 +138,7 @@ public class TestDirectory extends LuceneTestCase { // LUCENE-1468 public void testFSDirectoryFilter() throws IOException { - checkDirectoryFilter(FSDirectory.open(new File("test"))); + checkDirectoryFilter(FSDirectory.open(new File(System.getProperty("tempDir"),"test"))); } // LUCENE-1468