hudson.plugins.sonar.utils
Class SonarHelper
java.lang.Object
hudson.plugins.sonar.utils.SonarHelper
public final class SonarHelper
- extends java.lang.Object
- Since:
- 1.2
- Author:
- Evgeny Mandrikov
|
Field Summary |
static java.lang.String |
MAVEN_PROPERTIES
Produce execution error messages and run in non-interactive (batch) mode. |
|
Method Summary |
static void |
addTokenizedAndQuoted(boolean isUnix,
hudson.util.ArgumentListBuilder args,
java.lang.String argsString)
|
static void |
appendUnlessEmpty(java.lang.StringBuilder builder,
java.lang.String key,
java.lang.String value)
|
static boolean |
executeMaven(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
java.lang.String mavenName,
java.lang.String pom,
SonarInstallation sonarInstallation,
SonarPublisher sonarPublisher)
|
static boolean |
executeMaven(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
java.lang.String targets,
java.lang.String mavenName,
java.lang.String pom,
java.lang.String properties,
java.lang.String jvmOptions,
boolean usePrivateRepository)
See Maven. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAVEN_PROPERTIES
public static final java.lang.String MAVEN_PROPERTIES
- Produce execution error messages and run in non-interactive (batch) mode.
- See Also:
- Constant Field Values
appendUnlessEmpty
public static void appendUnlessEmpty(java.lang.StringBuilder builder,
java.lang.String key,
java.lang.String value)
addTokenizedAndQuoted
public static void addTokenizedAndQuoted(boolean isUnix,
hudson.util.ArgumentListBuilder args,
java.lang.String argsString)
executeMaven
public static boolean executeMaven(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
java.lang.String targets,
java.lang.String mavenName,
java.lang.String pom,
java.lang.String properties,
java.lang.String jvmOptions,
boolean usePrivateRepository)
throws java.io.IOException,
java.lang.InterruptedException
- See
Maven.
- Parameters:
build - buildlauncher - launcherlistener - listenertargets - The targets and other maven options like "-Pprofile".
Can be separated by SP or NL.mavenName - Identifies Maven.MavenInstallation to be used.pom - Optional POM file path relative to the workspace.
Used for the Maven '-f' option.properties - Optional properties to be passed to Maven like "-Dname=value".
Follows Properties syntax.jvmOptions - MAVEN_OPTS if not null.usePrivateRepository - If true, the build will use its own local Maven repository
via "-Dmaven.repo.local=...".
- Returns:
- true if the build can continue, false if there was an error
and the build needs to be aborted.
- Throws:
java.io.IOException - If the implementation wants to abort the processing when an
IOException happens
java.lang.InterruptedException - If the build is interrupted by the user.
executeMaven
public static boolean executeMaven(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
java.lang.String mavenName,
java.lang.String pom,
SonarInstallation sonarInstallation,
SonarPublisher sonarPublisher)
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2007-2010. All Rights Reserved.