diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-22 16:49:01 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-22 19:31:59 +0100 |
commit | c152a8c09c6dc62a7cc102721c1a848a493fb68d (patch) | |
tree | cfb92870144d46a04a20b100315df1aa828b7560 /sonar-core | |
parent | 3475a5114e4282de534d477980acaa6b36714d39 (diff) | |
download | sonarqube-c152a8c09c6dc62a7cc102721c1a848a493fb68d.tar.gz sonarqube-c152a8c09c6dc62a7cc102721c1a848a493fb68d.zip |
SONAR-3224 API: support Ruby on Rails applications
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/plugins/PluginInstaller.java (renamed from sonar-core/src/main/java/org/sonar/core/plugins/PluginFileExtractor.java) | 2 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/plugins/PluginInstallerTest.java (renamed from sonar-core/src/test/java/org/sonar/core/plugins/PluginFileExtractorTest.java) | 12 | ||||
-rw-r--r-- | sonar-core/src/test/resources/org/sonar/core/plugins/PluginInstallerTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml (renamed from sonar-core/src/test/resources/org/sonar/core/plugins/PluginFileExtractorTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml) | 0 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/plugins/PluginFileExtractor.java b/sonar-core/src/main/java/org/sonar/core/plugins/PluginInstaller.java index 59676d078be..3be1816658c 100644 --- a/sonar-core/src/main/java/org/sonar/core/plugins/PluginFileExtractor.java +++ b/sonar-core/src/main/java/org/sonar/core/plugins/PluginInstaller.java @@ -33,7 +33,7 @@ import java.net.URLClassLoader; import java.util.List; import java.util.zip.ZipEntry; -public class PluginFileExtractor { +public class PluginInstaller { public DefaultPluginMetadata installInSameLocation(File pluginFile, boolean isCore, List<File> deprecatedExtensions) { return install(pluginFile, isCore, deprecatedExtensions, null); diff --git a/sonar-core/src/test/java/org/sonar/core/plugins/PluginFileExtractorTest.java b/sonar-core/src/test/java/org/sonar/core/plugins/PluginInstallerTest.java index fbd644ef68b..9afc9c9de17 100644 --- a/sonar-core/src/test/java/org/sonar/core/plugins/PluginFileExtractorTest.java +++ b/sonar-core/src/test/java/org/sonar/core/plugins/PluginInstallerTest.java @@ -29,9 +29,9 @@ import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertThat; -public class PluginFileExtractorTest { +public class PluginInstallerTest { - private PluginFileExtractor extractor= new PluginFileExtractor(); + private PluginInstaller extractor= new PluginInstaller(); @Test public void shouldExtractMetadata() { @@ -60,7 +60,7 @@ public class PluginFileExtractorTest { @Test public void shouldCopyAndExtractDependencies() throws IOException { - File toDir = new File("target/test-tmp/PluginFileExtractorTest/shouldCopyAndExtractDependencies"); + File toDir = new File("target/test-tmp/PluginInstallerTest/shouldCopyAndExtractDependencies"); FileUtils.forceMkdir(toDir); FileUtils.cleanDirectory(toDir); @@ -73,7 +73,7 @@ public class PluginFileExtractorTest { @Test public void shouldExtractOnlyDependencies() throws IOException { - File toDir = new File("target/test-tmp/PluginFileExtractorTest/shouldExtractOnlyDependencies"); + File toDir = new File("target/test-tmp/PluginInstallerTest/shouldExtractOnlyDependencies"); FileUtils.forceMkdir(toDir); FileUtils.cleanDirectory(toDir); @@ -86,13 +86,13 @@ public class PluginFileExtractorTest { @Test public void shouldCopyRuleExtensionsOnServerSide() throws IOException { - File toDir = new File("target/test-tmp/PluginFileExtractorTest/shouldCopyRuleExtensionsOnServerSide"); + File toDir = new File("target/test-tmp/PluginInstallerTest/shouldCopyRuleExtensionsOnServerSide"); FileUtils.forceMkdir(toDir); FileUtils.cleanDirectory(toDir); DefaultPluginMetadata metadata = DefaultPluginMetadata.create(getFile("sonar-checkstyle-plugin-2.8.jar")) .setKey("checkstyle") - .addDeprecatedExtension(getFile("PluginFileExtractorTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml")); + .addDeprecatedExtension(getFile("PluginInstallerTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml")); extractor.install(metadata, toDir); assertThat(new File(toDir, "sonar-checkstyle-plugin-2.8.jar").exists(), is(true)); diff --git a/sonar-core/src/test/resources/org/sonar/core/plugins/PluginFileExtractorTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml b/sonar-core/src/test/resources/org/sonar/core/plugins/PluginInstallerTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml index 75a263db3c3..75a263db3c3 100644 --- a/sonar-core/src/test/resources/org/sonar/core/plugins/PluginFileExtractorTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml +++ b/sonar-core/src/test/resources/org/sonar/core/plugins/PluginInstallerTest/shouldCopyRuleExtensionsOnServerSide/checkstyle-extension.xml |