String url = baseUrl + "/deploy/jdbc-driver.jar";
try {
File jdbcDriver = new File(workingDirectories.getRoot(), "jdbc-driver.jar");
- LOG.info("Download JDBC driver to " + jdbcDriver);
+ LOG.debug("Downloading JDBC driver to " + jdbcDriver);
httpDownloader.download(new URI(url), jdbcDriver);
return jdbcDriver;
try {
File targetDir = workingDirectories.getDir("plugins/" + remote.getKey());
FileUtils.forceMkdir(targetDir);
- LOG.info("Downloading plugin " + remote.getKey() + " into " + targetDir);
+ LOG.debug("Downloading plugin " + remote.getKey() + " into " + targetDir);
List<File> files = Lists.newArrayList();
for (String filename : remote.getFilenames()) {
public List<RemotePlugin> downloadPluginIndex() {
String url = baseUrl + "/deploy/plugins/index.txt";
try {
+ LOG.debug("Downloading index of plugins");
String indexContent = httpDownloader.downloadPlainText(new URI(url), "UTF-8");
String[] rows = StringUtils.split(indexContent, CharUtils.LF);
List<RemotePlugin> remoteLocations = Lists.newArrayList();
+++ /dev/null
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2008-2011 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.batch.bootstrap;
-
-import org.junit.Ignore;
-
-@Ignore
-public class BatchModuleTest {
-
-}
import java.io.File;
import java.net.URISyntaxException;
import java.net.URL;
-import java.util.Arrays;
import static junit.framework.Assert.assertNotNull;
import static junit.framework.Assert.assertNull;
JdbcDriverHolder classloader = new JdbcDriverHolder(new File(url.toURI()));
assertNotNull(classloader.getClassLoader());
assertNotNull(classloader.getClassLoader().getResource("foo/foo.txt"));
-
+
}
}
import org.hamcrest.Matchers;
import org.junit.Test;
-import org.sonar.batch.bootstrap.Module;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.nullValue;
public void componentsShouldBeSingletons() {
Module module = new FakeModule(FakeService.class).init();
- assertThat(module.getComponent(FakeService.class)==module.getComponent(FakeService.class), is(true));
+ assertThat(module.getComponent(FakeService.class) == module.getComponent(FakeService.class), is(true));
}
@Test
import org.apache.maven.project.MavenProject;
import org.junit.Test;
import org.sonar.api.*;
-import org.sonar.api.batch.AbstractCoverageExtension;
import org.sonar.api.batch.CoverageExtension;
import org.sonar.api.batch.InstantiationStrategy;
import org.sonar.api.batch.SupportedEnvironment;
private static Project newJavaProject(Configuration conf) {
Project project = new Project("foo").setLanguageKey(Java.KEY).setAnalysisType(Project.AnalysisType.DYNAMIC);
- project.setConfiguration(conf!=null ? conf : new PropertiesConfiguration());
+ project.setConfiguration(conf != null ? conf : new PropertiesConfiguration());
return project;
}