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
This commit is contained in:
Grant Ingersoll 2006-12-12 02:44:42 +00:00
parent 00250552f8
commit 15df97db57
2 changed files with 3 additions and 1 deletions

View File

@ -313,6 +313,7 @@ Optimizations
Test Cases Test Cases
1. Added TestTermScorer.java (Grant Ingersoll) 1. Added TestTermScorer.java (Grant Ingersoll)
2. Added TestWindowsMMap.java (Benson Margulies via Mike McCandless) 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 Documentation

View File

@ -164,7 +164,8 @@ public class TestFieldsReader extends TestCase {
*/ */
public void testLazyPerformance() throws Exception { public void testLazyPerformance() throws Exception {
String tmpIODir = System.getProperty("java.io.tmpdir"); 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); File file = new File(path);
FSDirectory tmpDir = FSDirectory.getDirectory(file, true); FSDirectory tmpDir = FSDirectory.getDirectory(file, true);
assertTrue(tmpDir != null); assertTrue(tmpDir != null);