Apache Lucene open-source search software
LUCENE 744 - Appended user.name property onto the directory that gets created in temp so that there aren't naming clashes.
Grant Ingersoll15df97db577a
diff --git a/CHANGES.txt b/CHANGES.txtindex d395a9ffaa3..21a3aa986df 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -313,6 +313,7 @@ OptimizationsTest Cases1. Added TestTermScorer.java (Grant Ingersoll)2. Added TestWindowsMMap.java (Benson Margulies via Mike McCandless)+ 3. LUCENE-744 Append the user.name property onto the temporary directory that is created so it doesn't interfere with other users. (Grant Ingersoll)Documentationdiff --git a/src/test/org/apache/lucene/index/TestFieldsReader.java b/src/test/org/apache/lucene/index/TestFieldsReader.javaindex 64f2f9e0ad0..7bba89bda5c 100644--- a/src/test/org/apache/lucene/index/TestFieldsReader.java+++ b/src/test/org/apache/lucene/index/TestFieldsReader.java@@ -164,7 +164,8 @@ public class TestFieldsReader extends TestCase {*/public void testLazyPerformance() throws Exception {String tmpIODir = System.getProperty("java.io.tmpdir");- String path = tmpIODir + File.separator + "lazyDir";+ String userName = System.getProperty("user.name");+ String path = tmpIODir + File.separator + "lazyDir" + userName;File file = new File(path);FSDirectory tmpDir = FSDirectory.getDirectory(file, true);assertTrue(tmpDir != null);