Integrated: 7856: Fix errors in Eclipse projects after JMC-7769
Christoph Langer
clanger at openjdk.org
Wed Jul 20 20:16:14 UTC 2022
On Fri, 15 Jul 2022 21:23:34 GMT, Christoph Langer <clanger at openjdk.org> wrote:
> [JMC-7769](https://bugs.openjdk.org/browse/JMC-7769) cleaned up the project layout for missioncontrol core, especially the test projects.
> However, after that patch, an Eclipse IDE setup shows errors in test projects of the application, e.g. in org.openjdk.jmc.rjmx.test.
>
> This is caused by an issue in project setup of core/tests/org.openjdk.jmc.common.test, which is a prerequisite to some other test projects.
> Class files are generated into the target/test-classes folder but Eclipse only exposes target/classes to dependent projects.
>
> The fix is to set up org.openjdk.jmc.common.test like a general library project, only using src/main/java -> target/classes.
>
> Because it is a module of missioncontrol.core.tests, the property `fail.if.no.tests=false` needs to be set, otherwise the build fails because tests would be expected.
This pull request has now been integrated.
Changeset: b5e03c67
Author: Christoph Langer <clanger at openjdk.org>
URL: https://git.openjdk.org/jmc/commit/b5e03c6761aaf70e21374068d5fb6a4a4ad8d4f2
Stats: 15 lines in 3 files changed: 8 ins; 5 del; 2 mod
7856: Fix errors in Eclipse projects after JMC-7769
Reviewed-by: hirt
-------------
PR: https://git.openjdk.org/jmc/pull/413
More information about the jmc-dev
mailing list