org.hudsonci.maven.plugin.builder.internal
Class MavenInstallationValidator

java.lang.Object
  extended by 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

Constructor Summary
MavenInstallationValidator(MavenInstallation installation, AbstractBuild<?,?> build, EnvVars buildEnv, Launcher launcher, BuildListener listener)
           
 
Method Summary
 String getEventSpyVersion()
           
 FilePath getExecutable()
           
 ClasspathBuilder getExtClasspath()
           
 FilePath getHome()
           
 void validate()
          Runs mvn --help and sets MAVEN_OPTS to some garbage and expects the execution to fail.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenInstallationValidator

public MavenInstallationValidator(MavenInstallation installation,
                                  AbstractBuild<?,?> build,
                                  EnvVars buildEnv,
                                  Launcher launcher,
                                  BuildListener listener)
Method Detail

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.