fix the missing tempDir in trunk

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@922602 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2010-03-13 16:48:40 +00:00
parent 53c19d660a
commit e5aada052c
3 changed files with 3 additions and 5 deletions

View File

@ -43,7 +43,7 @@
<property name="dev.version" value="3.1-dev"/>
<property name="version" value="${dev.version}"/>
<property name="backwards.branch" value="lucene_3_0_back_compat_tests"/>
<property name="backwards.rev" value="912395"/>
<property name="backwards.rev" value="922601"/>
<property name="spec.version" value="${version}"/>
<property name="year" value="2000-${current.year}"/>
<property name="final.name" value="lucene-${name}-${version}"/>

View File

@ -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;

View File

@ -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