diff options
author | Godin <mandrikov@gmail.com> | 2010-10-17 01:24:41 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-10-17 01:24:41 +0000 |
commit | ef8460a7546aa7183c12c40b73b0b6c329aa9aea (patch) | |
tree | e0fff64555bbfc3ff5878a5ec2f6fa6db5cf21f8 /sonar-batch | |
parent | e2cf58f8b86e7a047dadc78d09aea6a7804ba772 (diff) | |
download | sonarqube-ef8460a7546aa7183c12c40b73b0b6c329aa9aea.tar.gz sonarqube-ef8460a7546aa7183c12c40b73b0b6c329aa9aea.zip |
SONAR-1834: When exist, the source code exclusion patterns should be displayed in the Maven log
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/Batch.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/Batch.java b/sonar-batch/src/main/java/org/sonar/batch/Batch.java index 4cd649b3d65..cd2e0709eaf 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/Batch.java +++ b/sonar-batch/src/main/java/org/sonar/batch/Batch.java @@ -36,6 +36,7 @@ import org.sonar.jpa.session.DriverDatabaseConnector; import org.sonar.jpa.session.ThreadLocalDatabaseSessionFactory; import java.net.URLClassLoader; +import java.util.Arrays; public class Batch { @@ -109,7 +110,13 @@ public class Batch { for (Project module : project.getModules()) { analyzeProject(container, index, module); } - LOG.info("------------- Analyzing " + project.getName()); + LOG.info("------------- Analyzing {}", project.getName()); + + String[] exclusionPatterns = project.getExclusionPatterns(); + if (exclusionPatterns != null && exclusionPatterns.length > 0) { + LOG.info("Excluded sources : {}", Arrays.toString(exclusionPatterns)); + } + new ProjectBatch(container).execute(index, project); } } |