aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-11-27 10:28:02 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2013-11-27 10:28:23 +0100
commit5a9efea328f1483d4cf8169a66db346f7c3ee48e (patch)
tree139760fe2aea83ebd48fa09feba8297cc253569c /sonar-batch
parent56b6fa8c650d96a05734983e874f48c1aff40dae (diff)
downloadsonarqube-5a9efea328f1483d4cf8169a66db346f7c3ee48e.tar.gz
sonarqube-5a9efea328f1483d4cf8169a66db346f7c3ee48e.zip
SONAR-4830 Remove unused code
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginInstaller.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginInstaller.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginInstaller.java
index 64086ef1cbb..39b7e61e3e8 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginInstaller.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginInstaller.java
@@ -20,14 +20,12 @@
package org.sonar.batch.bootstrap;
import org.sonar.api.BatchComponent;
-import org.sonar.api.utils.ZipUtils;
import org.sonar.core.plugins.DefaultPluginMetadata;
import org.sonar.core.plugins.PluginInstaller;
import org.sonar.home.cache.FileCache;
import java.io.File;
import java.io.IOException;
-import java.util.zip.ZipEntry;
public class BatchPluginInstaller extends PluginInstaller implements BatchComponent {
@@ -48,29 +46,4 @@ public class BatchPluginInstaller extends PluginInstaller implements BatchCompon
return cache.unzip(pluginFile);
}
- private void copyDependencies(DefaultPluginMetadata metadata, File pluginFile, File pluginBasedir) throws IOException {
- if (!metadata.getPathsToInternalDeps().isEmpty()) {
- // needs to unzip the jar
- File baseDir;
- if (pluginBasedir == null) {
- baseDir = cache.unzip(pluginFile);
- } else {
- ZipUtils.unzip(pluginFile, pluginBasedir, new LibFilter());
- baseDir = pluginBasedir;
- }
- for (String depPath : metadata.getPathsToInternalDeps()) {
- File dependency = new File(baseDir, depPath);
- if (!dependency.isFile() || !dependency.exists()) {
- throw new IllegalArgumentException("Dependency " + depPath + " can not be found in " + pluginFile.getName());
- }
- metadata.addDeployedFile(dependency);
- }
- }
- }
-
- private static final class LibFilter implements ZipUtils.ZipEntryFilter {
- public boolean accept(ZipEntry entry) {
- return entry.getName().startsWith("META-INF/lib");
- }
- }
}