aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-29 13:54:48 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-30 16:28:08 +0200
commit91cf8cfa5a50c8322b39f87c4cf187690af88d99 (patch)
treed18dcfe67a86001b6270f64052324c861867d9ae /sonar-batch
parent4949bcaec5280aa01400ddb3be207f5d0d1b5d4c (diff)
downloadsonarqube-91cf8cfa5a50c8322b39f87c4cf187690af88d99.tar.gz
sonarqube-91cf8cfa5a50c8322b39f87c4cf187690af88d99.zip
Improve unassociated mode logs
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/repository/ProjectRepositoriesProvider.java2
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'.");
}
}