Skip to content

Apache Lucene open-source search software

LUCENE-4338: Redirect java.io.tmpdir so that each JVM gets their own tmpdir under a build/test.

Dawid Weiss0cd9b42034e6
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index 6f638621c54..12e0e1239f7 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -847,7 +847,8 @@
<sysproperty key="tests.multiplier" value="@{tests.multiplier}"/>
<!-- Temporary directory in the cwd. -->
- <sysproperty key="tempDir" value="."/>
+ <sysproperty key="tempDir" value="." />
+ <sysproperty key="java.io.tmpdir" value="." />
<sysproperty key="lucene.version" value="${dev.version}"/>