Apache Nutch is an extensible and scalable web crawler
NUTCH-1807 Avoid methods relying on system-specific default locale / charset
Sebastian Nagel4319278a4888
diff --git a/.github/workflows/master-build.yml b/.github/workflows/master-build.ymlindex c731be356..c16b0c98f 100644--- a/.github/workflows/master-build.yml+++ b/.github/workflows/master-build.yml@@ -233,15 +233,15 @@ jobs:# run if the build configuration or both 'core' and 'plugins' files were changed- name: test allif: ${{ steps.filter.outputs.buildconf == 'true' || ( steps.filter.outputs.core == 'true' && steps.filter.outputs.plugins == 'true' ) }}- run: ant clean test -buildfile build.xml+ run: ant clean test forbidden-api-checks -buildfile build.xml# run only if 'core' files were changed- name: test coreif: ${{ steps.filter.outputs.core == 'true' && steps.filter.outputs.plugins == 'false' && steps.filter.outputs.buildconf == 'false' }}- run: ant clean test-core -buildfile build.xml+ run: ant clean test-core forbidden-api-checks -buildfile build.xml# run only if 'plugins' files were changed- name: test pluginsif: ${{ steps.filter.outputs.plugins == 'true' && steps.filter.outputs.core == 'false' && steps.filter.outputs.buildconf == 'false' }}- run: ant clean test-plugins -buildfile build.xml+ run: ant clean test-plugins forbidden-api-checks -buildfile build.xml# run indexer integration tests when indexer plugin files change (Docker required, ubuntu-latest only)- name: test indexer integrationif: ${{ steps.filter.outputs.indexer_plugins == 'true' && matrix.os == 'ubuntu-latest' }}diff --git a/build.xml b/build.xmlindex f73e89e43..5463f65ea 100644--- a/build.xml+++ b/build.xml@@ -467,7 +467,9 @@</antcall></target>- <target name="test-core" depends="compile-core-test, job, jacoco-download" description="--> run core JUnit tests">+ <target name="test-core"+ depends="compile-core-test, job, jacoco-download"+ description="--> run core JUnit tests"><delete dir="${test.build.data}"/><mkdir dir="${test.build.data}"/><mkdir dir="${coverage.dir}"/>@@ -517,7 +519,9 @@<fail if="tests.failed">Tests failed!</fail></target>- <target name="test-plugins" depends="resolve-test, compile, compile-core-test, jacoco-download" description="--> run JUnit tests for all plugins">+ <target name="test-plugins"+ depends="resolve-test, compile, compile-core-test, jacoco-download"+ description="--> run JUnit tests for all plugins"><ant dir="src/plugin" target="test" inheritAll="false"/></target>@@ -1168,8 +1172,16 @@<!-- Policeman's Forbidden API checker --><!-- https://github.com/policeman-tools/forbidden-apis/wiki/AntUsage --><!-- ================================================================== -->- <target name="forbidden-api-checks" depends="compile, compile-core-test, test-plugins">- <!-- Depends on test-plugins, in order to compile also the plugin test classes. -->+ <target name="forbidden-api-checks" depends="compile-core, compile-plugins">+ <!-- Note: by default, when the target "forbidden-api-checks" is+ launched from a clean project root (after "ant clean"), only+ core and plugin classes are checked. In order to check also+ the test classes, run it together with "test-core" or+ "test-plugins", or any target which depends on the two, e.g.+ ant clean test-core forbidden-api-checks+ ant clean test-plugins forbidden-api-checks+ ant clean test forbidden-api-checks+ --><ivy:cachepath organisation="de.thetaphi" module="forbiddenapis" revision="${forbiddenapis.version}"inline="true" pathid="forbiddenapis.classpath"/><taskdef uri="antlib:de.thetaphi.forbiddenapis" classpathref="forbiddenapis.classpath"/>