Windows XP Professional
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
Windows XP Professional
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
"ant test" generates the following error consistently when run on a Windows machine even when run as user with Administrator privileges
[junit] Testcase: testTmpDirIsPlainFile(org.apache.lucene.index.store.TestFSDirectory): Caused an ERROR [junit] Access is denied [junit] java.io.IOException: Access is denied [junit] at java.io.WinNTFileSystem.createFileExclusively(Native Method) [junit] at java.io.File.createNewFile(File.java:828) [junit] at org.apache.lucene.index.store.TestFSDirectory.testTmpDirIsPlainFile(TestFSDirectory.java:66)
Description
"ant test" generates the following error consistently when run on a Windows machine even when run as user with Administrator privileges
[junit] Testcase: testTmpDirIsPlainFile(org.apache.lucene.index.store.TestFSDirectory): Caused an ERROR
[junit] Access is denied
[junit] java.io.IOException: Access is denied
[junit] at java.io.WinNTFileSystem.createFileExclusively(Native Method)
[junit] at java.io.File.createNewFile(File.java:828)
[junit] at org.apache.lucene.index.store.TestFSDirectory.testTmpDirIsPlainFile(TestFSDirectory.java:66)
The test fails for me too.
I looked into it a while ago, and a way to fix it wasn't obvious.
The author has indicated that it could be removed, and I just did that.
Yonik Seeley added a comment - 11/Mar/06 12:12 AM The test fails for me too.
I looked into it a while ago, and a way to fix it wasn't obvious.
The author has indicated that it could be removed, and I just did that.
I looked into it a while ago, and a way to fix it wasn't obvious.
The author has indicated that it could be removed, and I just did that.