org.hudsonci.maven.plugin.builder.internal
Class MavenInstallationValidator
java.lang.Object
org.hudsonci.maven.plugin.builder.internal.MavenInstallationValidator
public class MavenInstallationValidator
- extends Object
Perform validation of a Maven installation.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MavenInstallationValidator
public MavenInstallationValidator(MavenInstallation installation,
AbstractBuild<?,?> build,
EnvVars buildEnv,
Launcher launcher,
BuildListener listener)
getHome
public FilePath getHome()
getExecutable
public FilePath getExecutable()
throws Exception
- Throws:
Exception
getEventSpyVersion
public String getEventSpyVersion()
throws Exception
- Throws:
Exception
validate
public void validate()
throws Exception
- Runs mvn --help and sets MAVEN_OPTS to some garbage and expects the execution to fail.
This is only advisory as if the script fails before we get to executing the JVM then we can't
really know if the installation is valid or not.
- Throws:
Exception
getExtClasspath
public ClasspathBuilder getExtClasspath()
throws Exception
- Throws:
Exception
Copyright © 2004-2011 Hudson. All Rights Reserved.