Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

related to NUTCH-2059: refactor junit output formatter property to default.properties, and allow to override from command line. set to to plan by default (can be overriden to xml in a consistent way with -D)

Chris Mattmannb183eeb5a971
diff --git a/build.xml b/build.xml
index ce5e1dd6f..d29edaf28 100644
--- a/build.xml
+++ b/build.xml
@@ -22,7 +22,6 @@
<property file="${user.home}/build.properties" />
<property file="${basedir}/build.properties" />
<property file="${basedir}/default.properties" />
- <property name="test.junit.output.format" value="plain"/>
<property name="release.dir" value="${build.dir}/release"/>
<!-- define Maven coordinates, repository url and artifacts name etc -->
diff --git a/default.properties b/default.properties
index 1f95fd7e8..0830cda31 100644
--- a/default.properties
+++ b/default.properties
@@ -38,6 +38,7 @@ test.build.lib.dir = ${test.build.dir}/lib
test.build.data = ${test.build.dir}/data
test.build.classes = ${test.build.dir}/classes
test.build.javadoc = ${test.build.dir}/docs/api
+test.junit.output.format = plain
# Proxy Host and Port to use for building JavaDoc
javadoc.proxy.host=-J-DproxyHost=
diff --git a/src/plugin/build-plugin.xml b/src/plugin/build-plugin.xml
index 542b5a88c..c759d5f8a 100755
--- a/src/plugin/build-plugin.xml
+++ b/src/plugin/build-plugin.xml
@@ -210,7 +210,7 @@
<sysproperty key="test.input" value="${root}/data"/>
<sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
<classpath refid="test.classpath"/>
- <formatter type="plain" />
+ <formatter type="${test.junit.output.format}" />
<batchtest todir="${build.test}" unless="testcase">
<fileset dir="${src.test}"
includes="**/Test*.java" excludes="**/${test.exclude}.java" />