Apache Lucene open-source search software
SOLR-3849: Pass "-Djava.awt.headless=true" to test runner to prevent enabling AWT, spawning threads and modifying sysprops. Tests need no GUI and this also mimics the behaviour of the default startup scripts of Tomcat and Jetty.
Uwe Schindler08abdb0dc548
diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex e33a70de119..70a9837ecb4 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -876,6 +876,9 @@<sysproperty key="jetty.testMode" value="1"/><sysproperty key="jetty.insecurerandom" value="1"/><sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>++ <!-- disable AWT while running tests -->+ <sysproperty key="java.awt.headless" value="true"/><!-- Only pass these to the test JVMs if defined in ANT. --><syspropertyset>