org.apache.maven.shared.invoker
Class MavenCommandLineBuilder
java.lang.Object
org.apache.maven.shared.invoker.MavenCommandLineBuilder
public class MavenCommandLineBuilder
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MavenCommandLineBuilder
public MavenCommandLineBuilder()
build
public org.codehaus.plexus.util.cli.Commandline build(InvocationRequest request)
throws CommandLineConfigurationException
- Throws:
CommandLineConfigurationException
checkRequiredState
protected void checkRequiredState()
setSettingsLocation
protected void setSettingsLocation(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
setShellEnvironment
protected void setShellEnvironment(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
throws CommandLineConfigurationException
- Throws:
CommandLineConfigurationException
setProfiles
protected void setProfiles(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
setGoals
protected void setGoals(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
setProperties
protected void setProperties(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
setPomLocation
protected void setPomLocation(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
setEnvironmentPaths
protected void setEnvironmentPaths(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
setReactorBehavior
protected void setReactorBehavior(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
setFlags
protected void setFlags(InvocationRequest request,
org.codehaus.plexus.util.cli.Commandline cli)
findMavenExecutable
protected java.io.File findMavenExecutable()
throws CommandLineConfigurationException
- Throws:
CommandLineConfigurationException
wrapStringWithQuotes
public java.lang.String wrapStringWithQuotes(java.lang.String path)
- Wraps a path with quotes to handle paths with spaces. If no spaces are found,
the original string is returned.
- Parameters:
path
- string to wrap if containing spaces
- Returns:
- quote wrapped string
getLocalRepositoryDirectory
public java.io.File getLocalRepositoryDirectory()
setLocalRepositoryDirectory
public void setLocalRepositoryDirectory(java.io.File localRepositoryDirectory)
getLogger
public InvokerLogger getLogger()
setLogger
public void setLogger(InvokerLogger logger)
getMavenHome
public java.io.File getMavenHome()
setMavenHome
public void setMavenHome(java.io.File mavenHome)
getWorkingDirectory
public java.io.File getWorkingDirectory()
setWorkingDirectory
public void setWorkingDirectory(java.io.File workingDirectory)
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.