public class MavenCommandLineBuilder extends Object
MavenCommandLineBuilder class.
| Constructor and Description |
|---|
MavenCommandLineBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.shared.utils.cli.Commandline |
build(InvocationRequest request)
build.
|
protected void |
checkRequiredState()
checkRequiredState.
|
File |
getBaseDirectory()
Getter for the field
baseDirectory. |
File |
getLocalRepositoryDirectory()
Getter for the field
localRepositoryDirectory. |
InvokerLogger |
getLogger()
Getter for the field
logger. |
File |
getMavenExecutable()
Getter for the field
mavenExecutable. |
File |
getMavenHome()
Getter for the field
mavenHome. |
void |
setBaseDirectory(File baseDirectory)
Setter for the field
baseDirectory. |
protected void |
setFlags(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setFlags.
|
protected void |
setGoals(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setGoals.
|
protected void |
setLocalRepository(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setLocalRepository.
|
void |
setLocalRepositoryDirectory(File localRepositoryDirectory)
Setter for the field
localRepositoryDirectory. |
void |
setLogger(InvokerLogger logger)
Setter for the field
logger. |
void |
setMavenExecutable(File mavenExecutable)
mavenExecutable can either be relative to ${maven.home}/bin/ or absolute |
void |
setMavenHome(File mavenHome)
Setter for the field
mavenHome. |
protected void |
setPomLocation(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setPomLocation.
|
protected void |
setProfiles(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setProfiles.
|
protected void |
setProperties(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setProperties.
|
protected void |
setReactorBehavior(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setReactorBehavior.
|
protected void |
setSettingsLocation(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setSettingsLocation.
|
protected void |
setShellEnvironment(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setShellEnvironment.
|
protected void |
setThreads(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setThreads.
|
protected void |
setToolchainsLocation(InvocationRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
setToolchainsLocation.
|
protected void |
setupMavenExecutable(InvocationRequest request)
setupMavenExecutable.
|
public org.apache.maven.shared.utils.cli.Commandline build(InvocationRequest request) throws CommandLineConfigurationException
build.
request - a InvocationRequest object.Commandline object.CommandLineConfigurationException - if any.protected void checkRequiredState()
checkRequiredState.
protected void setSettingsLocation(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setSettingsLocation.
request - a InvocationRequest object.cli - a Commandline object.protected void setToolchainsLocation(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setToolchainsLocation.
request - a InvocationRequest object.cli - a Commandline object.protected void setShellEnvironment(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setShellEnvironment.
request - a InvocationRequest object.cli - a Commandline object.protected void setProfiles(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setProfiles.
request - a InvocationRequest object.cli - a Commandline object.protected void setGoals(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) throws CommandLineConfigurationException
setGoals.
request - a InvocationRequest object.cli - a Commandline object.CommandLineConfigurationException - if any.protected void setProperties(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setProperties.
request - a InvocationRequest object.cli - a Commandline object.protected void setPomLocation(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setPomLocation.
request - a InvocationRequest object.cli - a Commandline object.protected void setLocalRepository(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setLocalRepository.
request - a InvocationRequest object.cli - a Commandline object.protected void setReactorBehavior(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setReactorBehavior.
request - a InvocationRequest object.cli - a Commandline object.protected void setFlags(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setFlags.
request - a InvocationRequest object.cli - a Commandline object.protected void setThreads(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
setThreads.
request - a InvocationRequest object.cli - a Commandline object.protected void setupMavenExecutable(InvocationRequest request) throws CommandLineConfigurationException
setupMavenExecutable.
request - a Invoker requestCommandLineConfigurationException - if any.public File getLocalRepositoryDirectory()
Getter for the field localRepositoryDirectory.
File object.public void setLocalRepositoryDirectory(File localRepositoryDirectory)
Setter for the field localRepositoryDirectory.
localRepositoryDirectory - a File object.public InvokerLogger getLogger()
Getter for the field logger.
InvokerLogger object.public void setLogger(InvokerLogger logger)
Setter for the field logger.
logger - a InvokerLogger object.public void setMavenHome(File mavenHome)
Setter for the field mavenHome.
mavenHome - a File object.public File getBaseDirectory()
Getter for the field baseDirectory.
File object.public void setBaseDirectory(File baseDirectory)
Setter for the field baseDirectory.
baseDirectory - a File object.public void setMavenExecutable(File mavenExecutable)
mavenExecutable can either be relative to ${maven.home}/bin/ or absolutemavenExecutable - the executableCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.