Package org.apache.maven.shared.invoker
Class MavenCommandLineBuilder
java.lang.Object
org.apache.maven.shared.invoker.MavenCommandLineBuilder
MavenCommandLineBuilder class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.shared.utils.cli.Commandline
build
(InvocationRequest request) build.protected void
checkRequiredState.Getter for the fieldbaseDirectory
.Getter for the fieldlocalRepositoryDirectory
.Getter for the fieldlogger
.Getter for the fieldmavenExecutable
.Getter for the fieldmavenHome
.protected void
setArgs
(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) void
setBaseDirectory
(File baseDirectory) Setter for the fieldbaseDirectory
.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 fieldlocalRepositoryDirectory
.void
setLogger
(InvokerLogger logger) Setter for the fieldlogger
.void
setMavenExecutable
(File mavenExecutable) mavenExecutable
can either be relative to ${maven.home}/bin/ or absolutevoid
setMavenHome
(File mavenHome) Setter for the fieldmavenHome
.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.
-
Constructor Details
-
MavenCommandLineBuilder
public MavenCommandLineBuilder()
-
-
Method Details
-
checkRequiredState
protected void checkRequiredState()checkRequiredState.
-
getLocalRepositoryDirectory
Getter for the field
localRepositoryDirectory
.- Returns:
- a
File
object.
-
setLocalRepositoryDirectory
Setter for the field
localRepositoryDirectory
.- Parameters:
localRepositoryDirectory
- aFile
object.
-
getLogger
Getter for the field
logger
.- Returns:
- a
InvokerLogger
object.
-
getMavenHome
Getter for the field
mavenHome
.- Returns:
- a
File
object.
-
setMavenHome
Setter for the field
mavenHome
.- Parameters:
mavenHome
- aFile
object.
-
getBaseDirectory
Getter for the field
baseDirectory
.- Returns:
- a
File
object.
-
setBaseDirectory
Setter for the field
baseDirectory
.- Parameters:
baseDirectory
- aFile
object.
-
setMavenExecutable
mavenExecutable
can either be relative to ${maven.home}/bin/ or absolute- Parameters:
mavenExecutable
- the executable
-
getMavenExecutable
Getter for the field
mavenExecutable
.- Returns:
- a
File
object.