From 9e91098670092c5233213003850fd5a8c3d476fd Mon Sep 17 00:00:00 2001 From: Johannes Zink Date: Fri, 27 Feb 2015 14:10:09 +0100 Subject: [PATCH] clarified the shouldExecuteOnProject log-message; now it's clear this is a SCALA specific sensor --- .../org/sonar/plugins/scala/cobertura/CoberturaSensor.java | 4 ++-- .../java/org/sonar/plugins/scala/surefire/SurefireSensor.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/sonar/plugins/scala/cobertura/CoberturaSensor.java b/src/main/java/org/sonar/plugins/scala/cobertura/CoberturaSensor.java index 9621bc7..0ab0376 100644 --- a/src/main/java/org/sonar/plugins/scala/cobertura/CoberturaSensor.java +++ b/src/main/java/org/sonar/plugins/scala/cobertura/CoberturaSensor.java @@ -50,10 +50,10 @@ public CoberturaSensor(FileSystem fileSystem, PathResolver pathResolver, Setting public boolean shouldExecuteOnProject(Project project) { if(fileSystem.languages().contains(Scala.KEY)){ - LOG.info("CoberturaSensor will be executed"); + LOG.info("SonarScala - CoberturaSensor will be executed"); return true; } else { - LOG.info("CoberturaSensor will NOT be executed"); + LOG.info("SonarScala - CoberturaSensor will NOT be executed"); return false; } } diff --git a/src/main/java/org/sonar/plugins/scala/surefire/SurefireSensor.java b/src/main/java/org/sonar/plugins/scala/surefire/SurefireSensor.java index 7fdb25c..1367266 100644 --- a/src/main/java/org/sonar/plugins/scala/surefire/SurefireSensor.java +++ b/src/main/java/org/sonar/plugins/scala/surefire/SurefireSensor.java @@ -58,10 +58,10 @@ public SurefireSensor (Settings settings, FileSystem fileSystem, MavenProject po public boolean shouldExecuteOnProject(Project project) { if( fileSystem.hasFiles(fileSystem.predicates().hasLanguage(Scala.KEY))){ - LOG.info("SurefireSensor will be executed"); + LOG.info("SonarScala - SurefireSensor will be executed"); return true; } else { - LOG.info("SurefireSensor will NOT be executed"); + LOG.info("SonarScala - SurefireSensor will NOT be executed"); return false; } }