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 1401842 2012-10-24 19:49:47Z rfscholte $
Method Summary |
Commandline |
build(InvocationRequest request)
|
protected void |
checkRequiredState()
|
protected File |
findMavenExecutable()
|
File |
getLocalRepositoryDirectory()
|
InvokerLogger |
getLogger()
|
File |
getMavenExecutable()
|
File |
getMavenHome()
|
File |
getWorkingDirectory()
|
protected void |
setEnvironmentPaths(InvocationRequest request,
Commandline cli)
|
protected void |
setFlags(InvocationRequest request,
Commandline cli)
|
protected void |
setGoals(InvocationRequest request,
Commandline cli)
|
void |
setLocalRepositoryDirectory(File localRepositoryDirectory)
|
void |
setLogger(InvokerLogger logger)
|
void |
setMavenExecutable(File mavenExecutable)
mavenExecutable can either be relative to ${maven.home}/bin/ or absolute |
void |
setMavenHome(File mavenHome)
|
protected void |
setPomLocation(InvocationRequest request,
Commandline cli)
|
protected void |
setProfiles(InvocationRequest request,
Commandline cli)
|
protected void |
setProperties(InvocationRequest request,
Commandline cli)
|
protected void |
setReactorBehavior(InvocationRequest request,
Commandline cli)
|
protected void |
setSettingsLocation(InvocationRequest request,
Commandline cli)
|
protected void |
setShellEnvironment(InvocationRequest request,
Commandline cli)
|
protected void |
setThreads(InvocationRequest request,
Commandline cli)
|
protected void |
setToolchainsLocation(InvocationRequest request,
Commandline cli)
|
void |
setWorkingDirectory(File workingDirectory)
|
String |
wrapStringWithQuotes(String path)
Deprecated. Quoting of command line arguments should be left to the Commandline from plexus-utils. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MavenCommandLineBuilder
public MavenCommandLineBuilder()
build
public Commandline build(InvocationRequest request)
throws CommandLineConfigurationException
- Throws:
CommandLineConfigurationException
checkRequiredState
protected void checkRequiredState()
throws IOException
- Throws:
IOException
setSettingsLocation
protected void setSettingsLocation(InvocationRequest request,
Commandline cli)
setToolchainsLocation
protected void setToolchainsLocation(InvocationRequest request,
Commandline cli)
setShellEnvironment
protected void setShellEnvironment(InvocationRequest request,
Commandline cli)
throws CommandLineConfigurationException
- Throws:
CommandLineConfigurationException
setProfiles
protected void setProfiles(InvocationRequest request,
Commandline cli)
setGoals
protected void setGoals(InvocationRequest request,
Commandline cli)
setProperties
protected void setProperties(InvocationRequest request,
Commandline cli)
setPomLocation
protected void setPomLocation(InvocationRequest request,
Commandline cli)
setEnvironmentPaths
protected void setEnvironmentPaths(InvocationRequest request,
Commandline cli)
setReactorBehavior
protected void setReactorBehavior(InvocationRequest request,
Commandline cli)
setFlags
protected void setFlags(InvocationRequest request,
Commandline cli)
setThreads
protected void setThreads(InvocationRequest request,
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)
setMavenExecutable
public void setMavenExecutable(File mavenExecutable)
mavenExecutable
can either be relative to ${maven.home}/bin/ or absolute
- Parameters:
mavenExecutable
- the executable
getMavenExecutable
public File getMavenExecutable()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.