From 15df97db577a2ff322f3cc21e5c13634e21c9186 Mon Sep 17 00:00:00 2001 From: Grant Ingersoll Date: Tue, 12 Dec 2006 02:44:42 +0000 Subject: [PATCH] LUCENE 744 - Appended user.name property onto the directory that gets created in temp so that there aren't naming clashes. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@485988 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + src/test/org/apache/lucene/index/TestFieldsReader.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index d395a9ffaa3..21a3aa986df 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -313,6 +313,7 @@ Optimizations Test Cases 1. 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) Documentation diff --git a/src/test/org/apache/lucene/index/TestFieldsReader.java b/src/test/org/apache/lucene/index/TestFieldsReader.java index 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);