public class Main
extends java.lang.Object
The actual Maven execution will be started by the program sent through remoting.
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
static int |
launch(java.lang.String[] args)
Called by the code in remoting to launch.
|
static void |
main(java.io.File m2Home,
java.io.File remotingJar,
java.io.File interceptorJar,
int tcpPort,
java.io.File interceptorOverrideJar) |
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.io.File m2Home,
java.io.File remotingJar,
java.io.File interceptorJar,
int tcpPort,
java.io.File interceptorOverrideJar)
throws java.lang.Exception
m2Home - Maven2 installation. This is where we find Maven jars that we'll run.remotingJar - Hudson's remoting.jar that we'll load.interceptorJar - maven-interceptor.jar that we'll load.tcpPort - TCP socket that the launching Hudson will be listening to.
This is used for the remoting communication.interceptorOverrideJar - Possibly null override jar to be placed in front of maven-interceptor.jarjava.lang.Exceptionpublic static int launch(java.lang.String[] args)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
org.codehaus.classworlds.NoSuchRealmException,
java.lang.reflect.InvocationTargetException,
java.lang.ClassNotFoundException
org.codehaus.plexus.classworlds.realm.NoSuchRealmExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionorg.codehaus.classworlds.NoSuchRealmExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.ClassNotFoundExceptionCopyright © 2004-2014 Hudson. All Rights Reserved.