From 7d2a7f16509f7b9bded341ced9f0310c4941afa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sun, 26 Jan 2025 17:37:30 +0100 Subject: [PATCH] Build project after clean Currently the mojo reports probably old warnings, because of this we need to rebuild the project after cleanups are applied to get a more up-to-date state to report. (cherry picked from commit 97aef82ea3242e462f77f36ebf00c0d49a025ad8) --- .../src/main/java/org/eclipse/tycho/cleancode/CleanUp.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tycho-cleancode-plugin/src/main/java/org/eclipse/tycho/cleancode/CleanUp.java b/tycho-cleancode-plugin/src/main/java/org/eclipse/tycho/cleancode/CleanUp.java index 5d87ac6e91..ac7f54f505 100644 --- a/tycho-cleancode-plugin/src/main/java/org/eclipse/tycho/cleancode/CleanUp.java +++ b/tycho-cleancode-plugin/src/main/java/org/eclipse/tycho/cleancode/CleanUp.java @@ -65,6 +65,7 @@ protected CleanupResult createResult(IProject project) throws Exception { applyCleanups(project, cleanups, units); } } + buildProject(project); return result; }