hudson.maven
Class Maven3ProcessFactory

java.lang.Object
  extended by hudson.maven.AbstractMavenProcessFactory
      extended by hudson.maven.Maven3ProcessFactory

public class Maven3ProcessFactory
extends AbstractMavenProcessFactory

Author:
Olivier Lamy

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.maven.AbstractMavenProcessFactory
AbstractMavenProcessFactory.GetRemotingJar
 
Field Summary
 
Fields inherited from class hudson.maven.AbstractMavenProcessFactory
debugPort, MAVEN_REMOTE_USEINET_ENV_VAR_NAME, mavenRemoteUseInet, yjp
 
Method Summary
 JDK getJava(TaskListener listener)
           
protected  String getMainClassName()
          Returns the name of the Maven main class.
protected  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 listener)
           
protected  String getMavenInterceptorClassPath(Maven.MavenInstallation mvn, boolean isMaster, FilePath slaveRoot)
          Returns the classpath string for the maven-interceptor jar
protected  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.
 String getMavenOpts()
           
 ProcessCache.NewProcess newProcess(BuildListener listener, OutputStream out)
           
 
Methods inherited from class hudson.maven.AbstractMavenProcessFactory
addRunHeadLessOption, buildMavenAgentCmdLine, getCurrentNode, getEnvVars, getJava, getLauncher, getMavenInstallation, getMavenModuleSet, getMavenOpts, newProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMavenAgentClassPath

protected String getMavenAgentClassPath(Maven.MavenInstallation mvn,
                                        boolean isMaster,
                                        FilePath slaveRoot,
                                        BuildListener listener)
                                 throws IOException,
                                        InterruptedException
Description copied from class: AbstractMavenProcessFactory
Returns the classpath string for the maven-agent jar including classworlds

Specified by:
getMavenAgentClassPath in class AbstractMavenProcessFactory
Throws:
IOException
InterruptedException

getMainClassName

protected String getMainClassName()
Description copied from class: AbstractMavenProcessFactory
Returns the name of the Maven main class.

Specified by:
getMainClassName in class AbstractMavenProcessFactory

getMavenInterceptorClassPath

protected String getMavenInterceptorClassPath(Maven.MavenInstallation mvn,
                                              boolean isMaster,
                                              FilePath slaveRoot)
                                       throws IOException,
                                              InterruptedException
Description copied from class: AbstractMavenProcessFactory
Returns the classpath string for the maven-interceptor jar

Specified by:
getMavenInterceptorClassPath in class AbstractMavenProcessFactory
Throws:
IOException
InterruptedException

getMavenInterceptorOverride

protected String getMavenInterceptorOverride(Maven.MavenInstallation mvn,
                                             boolean isMaster,
                                             FilePath slaveRoot)
                                      throws IOException,
                                             InterruptedException
Description copied from class: AbstractMavenProcessFactory
For Maven 2.1.x - 2.2.x we need an additional jar which overrides some classes in the other interceptor jar.

Specified by:
getMavenInterceptorOverride in class AbstractMavenProcessFactory
Throws:
IOException
InterruptedException

newProcess

public ProcessCache.NewProcess newProcess(BuildListener listener,
                                          OutputStream out)
                                   throws IOException,
                                          InterruptedException
Parameters:
out - The output from the process should be sent to this output stream.
Throws:
IOException
InterruptedException

getMavenOpts

public String getMavenOpts()

getMavenInstallation

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

getJava

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


Copyright © 2004-2013. All Rights Reserved.