From 91cf8cfa5a50c8322b39f87c4cf187690af88d99 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Tue, 29 Sep 2015 13:54:48 +0200 Subject: [PATCH] Improve unassociated mode logs --- .../org/sonar/batch/repository/ProjectRepositoriesProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-batch/src/main/java/org/sonar/batch/repository/ProjectRepositoriesProvider.java b/sonar-batch/src/main/java/org/sonar/batch/repository/ProjectRepositoriesProvider.java index 2006167509e..eecca8b1dfe 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/repository/ProjectRepositoriesProvider.java +++ b/sonar-batch/src/main/java/org/sonar/batch/repository/ProjectRepositoriesProvider.java @@ -58,7 +58,7 @@ public class ProjectRepositoriesProvider extends ProviderAdapter { if (mode.isIssues()) { if (!project.exists()) { LOG.warn("Project doesn't exist on the server. All issues will be marked as 'new'."); - } else if (project.lastAnalysisDate() == null) { + } else if (project.lastAnalysisDate() == null && !mode.isNotAssociated()) { LOG.warn("No analysis has been found on the server for this project. All issues will be marked as 'new'."); } } -- 2.39.5