Skip to content

Commit

Permalink
Reorder resource.exists check (eclipse-m2e#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Dec 20, 2023
1 parent 9a51d6d commit 04bf36e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 04bf36e

Please sign in to comment.