mirror of https://github.com/apache/lucene.git
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:
parent
00250552f8
commit
15df97db57
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue