org.apache.maven.shared.invoker
Class MavenCommandLineBuilder
java.lang.Object
org.apache.maven.shared.invoker.MavenCommandLineBuilder
public class MavenCommandLineBuilder
- extends Object
- Version:
- $Id: MavenCommandLineBuilder.java 807829 2009-08-25 22:06:10Z olamy $
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()
throws IOException
- Throws:
IOException
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 File findMavenExecutable()
throws CommandLineConfigurationException,
IOException
- Throws:
CommandLineConfigurationException
IOException
wrapStringWithQuotes
public String wrapStringWithQuotes(String path)
- Deprecated. Quoting of command line arguments should be left to the Commandline from plexus-utils.
- 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 File getLocalRepositoryDirectory()
setLocalRepositoryDirectory
public void setLocalRepositoryDirectory(File localRepositoryDirectory)
getLogger
public InvokerLogger getLogger()
setLogger
public void setLogger(InvokerLogger logger)
getMavenHome
public File getMavenHome()
setMavenHome
public void setMavenHome(File mavenHome)
getWorkingDirectory
public File getWorkingDirectory()
setWorkingDirectory
public void setWorkingDirectory(File workingDirectory)
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.