hudson.maven
Class AbstractMavenProcessFactory

java.lang.Object
  extended by hudson.maven.AbstractMavenProcessFactory
Direct Known Subclasses:
Maven3ProcessFactory

public abstract class AbstractMavenProcessFactory
extends Object

Author:
Olivier Lamy

Nested Class Summary
protected static class AbstractMavenProcessFactory.GetRemotingJar
           
 
Field Summary
static String MAVEN_REMOTE_USEINET_ENV_VAR_NAME
           
static boolean mavenRemoteUseInet
           
 
Method Summary
protected abstract  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()
           
 Maven.MavenInstallation getMavenInstallation(TaskListener log)
           
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

mavenRemoteUseInet

public static boolean mavenRemoteUseInet

MAVEN_REMOTE_USEINET_ENV_VAR_NAME

public static final String MAVEN_REMOTE_USEINET_ENV_VAR_NAME
See Also:
Constant Field Values
Method Detail

newProcess

public ProcessCache.NewProcess newProcess(BuildListener listener,
                                          OutputStream out)
                                   throws IOException,
                                          InterruptedException
Starts maven process.

Throws:
IOException
InterruptedException

buildMavenAgentCmdLine

protected abstract ArgumentListBuilder buildMavenAgentCmdLine(BuildListener listener,
                                                              int tcpPort)
                                                       throws IOException,
                                                              InterruptedException
Builds the command line argument list to launch the maven process.

Throws:
IOException
InterruptedException

getMavenOpts

public String getMavenOpts()

getMavenInstallation

public Maven.MavenInstallation getMavenInstallation(TaskListener log)
                                             throws IOException,
                                                    InterruptedException
Throws:
IOException
InterruptedException

getJava

public JDK getJava(TaskListener log)
            throws IOException,
                   InterruptedException
Throws:
IOException
InterruptedException

getCurrentNode

protected Node getCurrentNode()
Returns the current Node on which we are buildling.


getMavenModuleSet

protected MavenModuleSet getMavenModuleSet()

getLauncher

protected Launcher getLauncher()

getEnvVars

protected EnvVars getEnvVars()


Copyright © 2004-2011. All Rights Reserved.