|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hudsonci.maven.plugin.builder.internal.MavenProcessBuilder
public class MavenProcessBuilder
Helper to build the arguments and environment for launching Maven.
| Field Summary | |
|---|---|
static String[] |
BANNED_OPTIONS
Banned options, users should be warned when configuring these via goals or mavenOpts, as this will prevent the integration from functioning correctly. |
static String[] |
BANNED_PROPERTIES
Banned properties (prefixes in arg form), users should be warned when configuring these via goals or mavenOpts, as they may prevent the integration from functioning correctly. |
static String[] |
SUPERFLUOUS_OPTIONS
Superfluous options, users should be warned when configuring these via goals or mavenOpts, as they are pointless. |
| Constructor Summary | |
|---|---|
MavenProcessBuilder(org.slf4j.Logger log)
|
|
| Method Summary | |
|---|---|
hudson.Launcher.ProcStarter |
build(hudson.Launcher.ProcStarter starter)
Build the process starter. |
hudson.util.ArgumentListBuilder |
buildArguments()
Build the arguments. |
hudson.EnvVars |
buildEnv()
Build the environment. |
hudson.util.ArgumentListBuilder |
buildOpts()
Build MAVEN_OPTS values. |
boolean |
detectBannedProperties(hudson.util.ArgumentListBuilder args)
Complain if any banned properties were configured. |
protected String |
resolve(String value)
Allows sub-class to perform variable resolution. |
MavenProcessBuilder |
withBuildVariables(Map<String,String> variables)
|
MavenProcessBuilder |
withConfiguration(BuildConfigurationDTO config)
|
MavenProcessBuilder |
withEnv(hudson.EnvVars env)
|
MavenProcessBuilder |
withExtClasspath(hudson.util.ClasspathBuilder classpath)
|
MavenProcessBuilder |
withMavenExecutable(hudson.FilePath file)
|
MavenProcessBuilder |
withMavenHome(hudson.FilePath dir)
|
MavenProcessBuilder |
withPort(int port)
|
MavenProcessBuilder |
withRepository(hudson.FilePath dir)
|
MavenProcessBuilder |
withStandardOutput(OutputStream output)
|
MavenProcessBuilder |
withTmpDir(hudson.FilePath dir)
|
MavenProcessBuilder |
withWindows(boolean flag)
|
MavenProcessBuilder |
withWorkingDirectory(hudson.FilePath dir)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] SUPERFLUOUS_OPTIONS
public static final String[] BANNED_OPTIONS
public static final String[] BANNED_PROPERTIES
| Constructor Detail |
|---|
public MavenProcessBuilder(org.slf4j.Logger log)
| Method Detail |
|---|
public MavenProcessBuilder withWindows(boolean flag)
public MavenProcessBuilder withTmpDir(hudson.FilePath dir)
public MavenProcessBuilder withMavenHome(hudson.FilePath dir)
public MavenProcessBuilder withMavenExecutable(hudson.FilePath file)
public MavenProcessBuilder withExtClasspath(hudson.util.ClasspathBuilder classpath)
public MavenProcessBuilder withRepository(hudson.FilePath dir)
public MavenProcessBuilder withBuildVariables(Map<String,String> variables)
public MavenProcessBuilder withEnv(hudson.EnvVars env)
public MavenProcessBuilder withPort(int port)
public MavenProcessBuilder withConfiguration(BuildConfigurationDTO config)
public MavenProcessBuilder withWorkingDirectory(hudson.FilePath dir)
public MavenProcessBuilder withStandardOutput(OutputStream output)
protected String resolve(String value)
public hudson.util.ArgumentListBuilder buildArguments()
throws Exception
Exception
public hudson.util.ArgumentListBuilder buildOpts()
throws Exception
Exception
public hudson.EnvVars buildEnv()
throws Exception
Exception
public hudson.Launcher.ProcStarter build(hudson.Launcher.ProcStarter starter)
throws Exception
Exceptionpublic boolean detectBannedProperties(hudson.util.ArgumentListBuilder args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||