org.jvnet.hudson.maven3.agent
Class Maven3Main
java.lang.Object
org.jvnet.hudson.maven3.agent.Maven3Main
public class Maven3Main
- extends java.lang.Object
Entry point for launching Maven 3 and Hudson remoting in the same VM, in the
classloader layout that Maven expects.
The actual Maven execution will be started by the program sent through
remoting.
- Author:
- Kohsuke Kawaguchi, Olivier Lamy
|
Method Summary |
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)
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Maven3Main
public Maven3Main()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.io.File m2Home,
java.io.File remotingJar,
java.io.File interceptorJar,
int tcpPort)
throws java.lang.Exception
- Parameters:
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-listener.jar that we'll load.tcpPort - TCP socket that the launching Hudson will be listening to.
This is used for the remoting communication.projectBuildLaunch - launch the projectBuilder and not a mavenExecution
- Throws:
java.lang.Exception
launch
public static int launch(java.lang.String[] args)
throws java.lang.Exception
- Called by the code in remoting to launch.
- Throws:
java.lang.Exception
Copyright © 2004-2011 Hudson. All Rights Reserved.