Package org.apache.maven.cling.invoker
Class CommonsCliOptions
java.lang.Object
org.apache.maven.cling.invoker.CommonsCliOptions
- All Implemented Interfaces:
Options
- Direct Known Subclasses:
CommonsCliEncryptOptions
,CommonsCliMavenOptions
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CommonsCliOptions.CLIManager
protected final org.apache.commons.cli.CommandLine
protected final String
Fields inherited from interface org.apache.maven.api.cli.Options
SOURCE_CLI
-
Constructor Summary
ModifierConstructorDescriptionprotected
CommonsCliOptions
(String source, CommonsCliOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) -
Method Summary
Modifier and TypeMethodDescriptionReturns the path to an alternate installation settings file.Returns the path to an alternate installation toolchains file.Returns the path to an alternate project settings file.Returns the path to an alternate user settings file.Returns the path to an alternate user toolchains file.color()
Returns the color setting for console output.void
displayHelp
(ParserRequest request, Consumer<String> printStream) Displays help information for these options.Returns the severity level at which the build should fail.Indicates whether to force interactive mode.help()
Indicates whether to show help information.logFile()
Returns the path to the log file.Indicates whether to run in non-interactive mode.quiet()
Indicates whether to run in quiet mode.Returns whether raw streams should be logged.Indicates whether to show error stack traces.Indicates whether to show the version information.Indicates whether to show the version information and exit.source()
Returns a simple designator of the options source, such as "cli", "maven.conf", etc.Returns the user-defined properties for the Maven execution.verbose()
Indicates whether to run in verbose mode.void
warnAboutDeprecatedOptions
(ParserRequest request, Consumer<String> printWriter) Emits warning messages if deprecated options are used.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.cli.Options
interpolate
-
Field Details
-
source
-
cliManager
-
commandLine
protected final org.apache.commons.cli.CommandLine commandLine
-
-
Constructor Details
-
CommonsCliOptions
protected CommonsCliOptions(String source, CommonsCliOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine)
-
-
Method Details
-
source
Description copied from interface:Options
Returns a simple designator of the options source, such as "cli", "maven.conf", etc. -
userProperties
Description copied from interface:Options
Returns the user-defined properties for the Maven execution.- Specified by:
userProperties
in interfaceOptions
- Returns:
- an
Optional
containing the map of user properties, or empty if not set
-
showVersionAndExit
Description copied from interface:Options
Indicates whether to show the version information and exit.- Specified by:
showVersionAndExit
in interfaceOptions
- Returns:
- an
Optional
containing the boolean flag, or empty if not set
-
showVersion
Description copied from interface:Options
Indicates whether to show the version information.- Specified by:
showVersion
in interfaceOptions
- Returns:
- an
Optional
containing the boolean flag, or empty if not set
-
quiet
Description copied from interface:Options
Indicates whether to run in quiet mode. -
verbose
Description copied from interface:Options
Indicates whether to run in verbose mode. -
showErrors
Description copied from interface:Options
Indicates whether to show error stack traces.- Specified by:
showErrors
in interfaceOptions
- Returns:
- an
Optional
containing the boolean flag, or empty if not set
-
failOnSeverity
Description copied from interface:Options
Returns the severity level at which the build should fail.- Specified by:
failOnSeverity
in interfaceOptions
- Returns:
- an
Optional
containing the fail-on-severity string, or empty if not set
-
nonInteractive
Description copied from interface:Options
Indicates whether to run in non-interactive mode.- Specified by:
nonInteractive
in interfaceOptions
- Returns:
- an
Optional
containing the boolean flag, or empty if not set
-
forceInteractive
Description copied from interface:Options
Indicates whether to force interactive mode.- Specified by:
forceInteractive
in interfaceOptions
- Returns:
- an
Optional
containing the boolean flag, or empty if not set
-
altUserSettings
Description copied from interface:Options
Returns the path to an alternate user settings file.- Specified by:
altUserSettings
in interfaceOptions
- Returns:
- an
Optional
containing the file path, or empty if not set
-
altProjectSettings
Description copied from interface:Options
Returns the path to an alternate project settings file.- Specified by:
altProjectSettings
in interfaceOptions
- Returns:
- an
Optional
containing the file path, or empty if not set
-
altInstallationSettings
Description copied from interface:Options
Returns the path to an alternate installation settings file.- Specified by:
altInstallationSettings
in interfaceOptions
- Returns:
- an
Optional
containing the file path, or empty if not set
-
altUserToolchains
Description copied from interface:Options
Returns the path to an alternate user toolchains file.- Specified by:
altUserToolchains
in interfaceOptions
- Returns:
- an
Optional
containing the file path, or empty if not set
-
altInstallationToolchains
Description copied from interface:Options
Returns the path to an alternate installation toolchains file.- Specified by:
altInstallationToolchains
in interfaceOptions
- Returns:
- an
Optional
containing the file path, or empty if not set
-
logFile
Description copied from interface:Options
Returns the path to the log file. -
rawStreams
Description copied from interface:Options
Returns whether raw streams should be logged.- Specified by:
rawStreams
in interfaceOptions
- Returns:
- a boolean indicating whether raw streams should be logged
-
color
Description copied from interface:Options
Returns the color setting for console output. -
help
Description copied from interface:Options
Indicates whether to show help information. -
warnAboutDeprecatedOptions
Description copied from interface:Options
Emits warning messages if deprecated options are used.- Specified by:
warnAboutDeprecatedOptions
in interfaceOptions
printWriter
- the string consumer to use for output
-
displayHelp
Description copied from interface:Options
Displays help information for these options.- Specified by:
displayHelp
in interfaceOptions
printStream
- the string consumer to use for output
-