Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-5022: Reenable Hdfs tests on Java 8+, because they have no permgen. Windows is still disabled, because Hadoop needs Cygwin.

Uwe Schindler376a4007f6a1
diff --git a/solr/common-build.xml b/solr/common-build.xml
index 1374c0c13b4..f964aa5ae85 100644
--- a/solr/common-build.xml
+++ b/solr/common-build.xml
@@ -141,10 +141,16 @@
</sequential>
</macrodef>
- <!-- we don't want to run HDFS tests on Windows, because they require Cygwin.
- If you have Cygwin, you can override this property on command line: -->
+ <!--
+ - We don't test HDFS on Java 7 because it causes permgen errors. Java 8 no longer has permgen.
+ - We don't want to run HDFS tests on Windows, because they require Cygwin.
+ If you have Cygwin or manually raised permgen, you can override this property on command line:
+ -->
<condition property="tests.disableHdfs" value="true">
- <os family="windows"/>
+ <or>
+ <equals arg1="${build.java.runtime}" arg2="1.7"/>
+ <os family="windows"/>
+ </or>
</condition>
<target name="validate" depends="compile-tools">