Sebastian Nagel created NUTCH-3093:
--------------------------------------
Summary: Ant target test-plugins to depend on compile-core-test
Key: NUTCH-3093
URL: https://issues.apache.org/jira/browse/NUTCH-3093
Project: Nutch
Issue Type: Bug
Components: build
Affects Versions: 1.21
Reporter: Sebastian Nagel
Fix For: 1.21
The ant target "test-plugins" must depend on the target "compile-core-test"
because test classes may import core test classes:
{noformat}
$> ant clean test-plugins
...
[javac]
.../src/plugin/protocol-okhttp/src/test/org/apache/nutch/protocol/okhttp/TestBadServerResponses.java:29:
error: cannot find symbol
[javac] import org.apache.nutch.protocol.AbstractHttpProtocolPluginTest;
[javac] ^
[javac] symbol: class AbstractHttpProtocolPluginTest
[javac] location: package org.apache.nutch.protocol
{noformat}
Note: when running {{ant test}} the core test classes are compiled for the
target "test-core" and stay available for the plugin tests.
This issue has shown up in the automated tests on Github after NUTCH-3084 which
runs conditionally on code changes in core or plugins source folders.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)