diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-21 18:06:11 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-21 18:13:15 +0200 |
commit | 88e6ec0762914d72dd42fb8be3b1ce0fb1e447c2 (patch) | |
tree | 022f19acf8e838dd59a6521e40931125331280b0 /sonar-batch/src/main/java/org/sonar/batch/bootstrap | |
parent | fe7eb1d29d9775f3da0d8b98ada1a5e927555cab (diff) | |
download | sonarqube-88e6ec0762914d72dd42fb8be3b1ce0fb1e447c2.tar.gz sonarqube-88e6ec0762914d72dd42fb8be3b1ce0fb1e447c2.zip |
SONAR-2497 Merge i18n plugin with core
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrap')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java index e8d698d2959..249c94b79b7 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java @@ -42,6 +42,7 @@ import java.util.*; public class BatchPluginRepository implements PluginRepository { private static final Logger LOG = LoggerFactory.getLogger(BatchPluginRepository.class); + private static final String CORE_PLUGIN = "core"; private ArtifactDownloader artifactDownloader; private Map<String, Plugin> pluginsByKey; @@ -52,12 +53,12 @@ public class BatchPluginRepository implements PluginRepository { public BatchPluginRepository(ArtifactDownloader artifactDownloader, Configuration configuration) { this.artifactDownloader = artifactDownloader; - if (configuration.getString(CoreProperties.INCLUDE_PLUGINS) != null) { - whiteList = Sets.newTreeSet(Arrays.asList(configuration.getStringArray(CoreProperties.INCLUDE_PLUGINS))); + if (configuration.getString(CoreProperties.BATCH_INCLUDE_PLUGINS) != null) { + whiteList = Sets.newTreeSet(Arrays.asList(configuration.getStringArray(CoreProperties.BATCH_INCLUDE_PLUGINS))); LOG.info("Include plugins: " + Joiner.on(", ").join(whiteList)); } - if (configuration.getString(CoreProperties.EXCLUDE_PLUGINS) != null) { - blackList = Sets.newTreeSet(Arrays.asList(configuration.getStringArray(CoreProperties.EXCLUDE_PLUGINS))); + if (configuration.getString(CoreProperties.BATCH_EXCLUDE_PLUGINS) != null) { + blackList = Sets.newTreeSet(Arrays.asList(configuration.getStringArray(CoreProperties.BATCH_EXCLUDE_PLUGINS))); LOG.info("Exclude plugins: " + Joiner.on(", ").join(blackList)); } // TODO reactivate somewhere else: LOG.info("Execution environment: {} {}", environment.getKey(), environment.getVersion()); @@ -124,6 +125,9 @@ public class BatchPluginRepository implements PluginRepository { } boolean isAccepted(String pluginKey) { + if (CORE_PLUGIN.equals(pluginKey)) { + return true; + } if (whiteList != null) { return whiteList.contains(pluginKey); } |