diff options
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/repository/ProjectRepositoriesProvider.java | 2 |
1 files changed, 1 insertions, 1 deletions
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'."); } } |