From 04bf36e04681a2484b58dc90583afbfe089c7557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kohlschu=CC=88tter?= Date: Wed, 20 Dec 2023 14:57:16 +0100 Subject: [PATCH] Reorder resource.exists check (#1511) --- .../org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java index b6fbb84e38..931bbd80f2 100644 --- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java +++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java @@ -226,7 +226,7 @@ private boolean hasRelevantDelta(IMavenProjectFacade projectFacade, IResourceDel if(buildOutputLocation.isPrefixOf(fullPath)) { //anything in the build output is not interesting for a change as it is produced by the build // ... unless a classpath resource that existed before has been deleted, possibly by another builder - if(!resource.exists() && isOutputOrTestOutput.test(fullPath)) { + if(isOutputOrTestOutput.test(fullPath) && !resource.exists()) { hasRelevantDelta.set(true); return false; }