diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-09-13 16:49:00 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-09-13 16:49:00 +0200 |
commit | 5d0513ef0d6295721fd3b6b247947d13ca8aa77c (patch) | |
tree | 04c02eb0e47a164f75c27dafafba52d1f430ad19 /src/main | |
parent | afcb0dc2b846309e6520dc00b918ce01e56221d5 (diff) | |
download | sonar-scanner-cli-5d0513ef0d6295721fd3b6b247947d13ca8aa77c.tar.gz sonar-scanner-cli-5d0513ef0d6295721fd3b6b247947d13ca8aa77c.zip |
Refactor package names
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/sonar/runner/BootstrapClassLoader.java | 2 | ||||
-rw-r--r-- | src/main/java/org/sonar/runner/Runner.java | 2 | ||||
-rw-r--r-- | src/main/java/org/sonar/runner/internal/batch/Launcher.java (renamed from src/main/java/org/sonar/runner/batch/Launcher.java) | 2 | ||||
-rw-r--r-- | src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java (renamed from src/main/java/org/sonar/runner/batch/SonarProjectBuilder.java) | 2 | ||||
-rw-r--r-- | src/main/java/org/sonar/runner/internal/batch/SonarRunnerUtils.java (renamed from src/main/java/org/sonar/runner/batch/SonarRunnerUtils.java) | 2 | ||||
-rw-r--r-- | src/main/java/org/sonar/runner/internal/batch/package-info.java (renamed from src/main/java/org/sonar/runner/batch/package-info.java) | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/sonar/runner/BootstrapClassLoader.java b/src/main/java/org/sonar/runner/BootstrapClassLoader.java index 307fc9c..8cb7f39 100644 --- a/src/main/java/org/sonar/runner/BootstrapClassLoader.java +++ b/src/main/java/org/sonar/runner/BootstrapClassLoader.java @@ -56,7 +56,7 @@ class BootstrapClassLoader extends URLClassLoader { * @return true, if class can be loaded from parent ClassLoader */ boolean canLoadFromParent(String name) { - if (name.startsWith("org.sonar.runner.") && !name.startsWith("org.sonar.runner.batch.")) { + if (name.startsWith("org.sonar.runner.") && !name.startsWith("org.sonar.runner.internal.batch.")) { return true; } for (String pkg : unmaskedPackages) { diff --git a/src/main/java/org/sonar/runner/Runner.java b/src/main/java/org/sonar/runner/Runner.java index b0a2208..78a261d 100644 --- a/src/main/java/org/sonar/runner/Runner.java +++ b/src/main/java/org/sonar/runner/Runner.java @@ -255,7 +255,7 @@ public final class Runner { ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(sonarClassLoader); - Class<?> launcherClass = sonarClassLoader.findClass("org.sonar.runner.batch.Launcher"); + Class<?> launcherClass = sonarClassLoader.findClass("org.sonar.runner.internal.batch.Launcher"); Constructor<?> constructor = launcherClass.getConstructor(Properties.class, List.class); Object launcher = constructor.newInstance(getProperties(), containerExtensions); Method method = launcherClass.getMethod("execute"); diff --git a/src/main/java/org/sonar/runner/batch/Launcher.java b/src/main/java/org/sonar/runner/internal/batch/Launcher.java index 97f31da..cb689bf 100644 --- a/src/main/java/org/sonar/runner/batch/Launcher.java +++ b/src/main/java/org/sonar/runner/internal/batch/Launcher.java @@ -17,7 +17,7 @@ * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ -package org.sonar.runner.batch; +package org.sonar.runner.internal.batch; import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.joran.JoranConfigurator; diff --git a/src/main/java/org/sonar/runner/batch/SonarProjectBuilder.java b/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java index 2861d09..e4cd483 100644 --- a/src/main/java/org/sonar/runner/batch/SonarProjectBuilder.java +++ b/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ -package org.sonar.runner.batch; +package org.sonar.runner.internal.batch; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.Lists; diff --git a/src/main/java/org/sonar/runner/batch/SonarRunnerUtils.java b/src/main/java/org/sonar/runner/internal/batch/SonarRunnerUtils.java index b4a4842..3f4725b 100644 --- a/src/main/java/org/sonar/runner/batch/SonarRunnerUtils.java +++ b/src/main/java/org/sonar/runner/internal/batch/SonarRunnerUtils.java @@ -17,7 +17,7 @@ * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ -package org.sonar.runner.batch; +package org.sonar.runner.internal.batch; import org.apache.commons.lang.StringUtils; diff --git a/src/main/java/org/sonar/runner/batch/package-info.java b/src/main/java/org/sonar/runner/internal/batch/package-info.java index cbeee96..cd9bbf4 100644 --- a/src/main/java/org/sonar/runner/batch/package-info.java +++ b/src/main/java/org/sonar/runner/internal/batch/package-info.java @@ -21,4 +21,4 @@ * Internal package that creates the project definition and launches the analyses based on it. * Should not be used by consumers. */ -package org.sonar.runner.batch;
\ No newline at end of file +package org.sonar.runner.internal.batch;
\ No newline at end of file |