|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.maven.AbstractMavenProcessFactory
public abstract class AbstractMavenProcessFactory
Nested Class Summary | |
---|---|
protected static class |
AbstractMavenProcessFactory.GetRemotingJar
|
Field Summary | |
---|---|
static int |
debugPort
If not 0, launch Maven with a debugger port. |
static String |
MAVEN_REMOTE_USEINET_ENV_VAR_NAME
|
static boolean |
mavenRemoteUseInet
|
static boolean |
yjp
If true, launch Maven with YJP offline profiler agent. |
Method Summary | |
---|---|
protected String |
addRunHeadLessOption(String mavenOpts)
|
protected ArgumentListBuilder |
buildMavenAgentCmdLine(BuildListener listener,
int tcpPort)
Builds the command line argument list to launch the maven process. |
protected Node |
getCurrentNode()
Returns the current Node on which we are buildling. |
protected EnvVars |
getEnvVars()
|
JDK |
getJava(TaskListener log)
|
protected Launcher |
getLauncher()
|
protected abstract String |
getMainClassName()
Returns the name of the Maven main class. |
protected abstract String |
getMavenAgentClassPath(Maven.MavenInstallation mvn,
boolean isMaster,
FilePath slaveRoot,
BuildListener listener)
Returns the classpath string for the maven-agent jar including classworlds |
Maven.MavenInstallation |
getMavenInstallation(TaskListener log)
|
protected abstract String |
getMavenInterceptorClassPath(Maven.MavenInstallation mvn,
boolean isMaster,
FilePath slaveRoot)
Returns the classpath string for the maven-interceptor jar |
protected abstract String |
getMavenInterceptorOverride(Maven.MavenInstallation mvn,
boolean isMaster,
FilePath slaveRoot)
For Maven 2.1.x - 2.2.x we need an additional jar which overrides some classes in the other interceptor jar. |
protected MavenModuleSet |
getMavenModuleSet()
|
String |
getMavenOpts()
|
ProcessCache.NewProcess |
newProcess(BuildListener listener,
OutputStream out)
Starts maven process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean mavenRemoteUseInet
public static final String MAVEN_REMOTE_USEINET_ENV_VAR_NAME
public static boolean yjp
public static int debugPort
Method Detail |
---|
public ProcessCache.NewProcess newProcess(BuildListener listener, OutputStream out) throws IOException, InterruptedException
IOException
InterruptedException
protected ArgumentListBuilder buildMavenAgentCmdLine(BuildListener listener, int tcpPort) throws IOException, InterruptedException
IOException
InterruptedException
protected abstract String getMavenAgentClassPath(Maven.MavenInstallation mvn, boolean isMaster, FilePath slaveRoot, BuildListener listener) throws IOException, InterruptedException
IOException
InterruptedException
protected abstract String getMavenInterceptorClassPath(Maven.MavenInstallation mvn, boolean isMaster, FilePath slaveRoot) throws IOException, InterruptedException
IOException
InterruptedException
protected abstract String getMavenInterceptorOverride(Maven.MavenInstallation mvn, boolean isMaster, FilePath slaveRoot) throws IOException, InterruptedException
IOException
InterruptedException
protected abstract String getMainClassName()
public String getMavenOpts()
protected String addRunHeadLessOption(String mavenOpts)
public Maven.MavenInstallation getMavenInstallation(TaskListener log) throws IOException, InterruptedException
IOException
InterruptedException
public JDK getJava(TaskListener log) throws IOException, InterruptedException
IOException
InterruptedException
protected Node getCurrentNode()
Node
on which we are buildling.
protected MavenModuleSet getMavenModuleSet()
protected Launcher getLauncher()
protected EnvVars getEnvVars()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |