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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommonsCliOptions.CLIManagerprotected final org.apache.commons.cli.CommandLineprotected final StringFields inherited from interface org.apache.maven.api.cli.Options
SOURCE_CLI -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommonsCliOptions(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.voiddisplayHelp(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.voidwarnAboutDeprecatedOptions(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, waitMethods 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:OptionsReturns a simple designator of the options source, such as "cli", "maven.conf", etc. -
userProperties
Description copied from interface:OptionsReturns the user-defined properties for the Maven execution.- Specified by:
userPropertiesin interfaceOptions- Returns:
- an
Optionalcontaining the map of user properties, or empty if not set
-
showVersionAndExit
Description copied from interface:OptionsIndicates whether to show the version information and exit.- Specified by:
showVersionAndExitin interfaceOptions- Returns:
- an
Optionalcontaining the boolean flag, or empty if not set
-
showVersion
Description copied from interface:OptionsIndicates whether to show the version information.- Specified by:
showVersionin interfaceOptions- Returns:
- an
Optionalcontaining the boolean flag, or empty if not set
-
quiet
Description copied from interface:OptionsIndicates whether to run in quiet mode. -
verbose
Description copied from interface:OptionsIndicates whether to run in verbose mode. -
showErrors
Description copied from interface:OptionsIndicates whether to show error stack traces.- Specified by:
showErrorsin interfaceOptions- Returns:
- an
Optionalcontaining the boolean flag, or empty if not set
-
failOnSeverity
Description copied from interface:OptionsReturns the severity level at which the build should fail.- Specified by:
failOnSeverityin interfaceOptions- Returns:
- an
Optionalcontaining the fail-on-severity string, or empty if not set
-
nonInteractive
Description copied from interface:OptionsIndicates whether to run in non-interactive mode.- Specified by:
nonInteractivein interfaceOptions- Returns:
- an
Optionalcontaining the boolean flag, or empty if not set
-
forceInteractive
Description copied from interface:OptionsIndicates whether to force interactive mode.- Specified by:
forceInteractivein interfaceOptions- Returns:
- an
Optionalcontaining the boolean flag, or empty if not set
-
altUserSettings
Description copied from interface:OptionsReturns the path to an alternate user settings file.- Specified by:
altUserSettingsin interfaceOptions- Returns:
- an
Optionalcontaining the file path, or empty if not set
-
altProjectSettings
Description copied from interface:OptionsReturns the path to an alternate project settings file.- Specified by:
altProjectSettingsin interfaceOptions- Returns:
- an
Optionalcontaining the file path, or empty if not set
-
altInstallationSettings
Description copied from interface:OptionsReturns the path to an alternate installation settings file.- Specified by:
altInstallationSettingsin interfaceOptions- Returns:
- an
Optionalcontaining the file path, or empty if not set
-
altUserToolchains
Description copied from interface:OptionsReturns the path to an alternate user toolchains file.- Specified by:
altUserToolchainsin interfaceOptions- Returns:
- an
Optionalcontaining the file path, or empty if not set
-
altInstallationToolchains
Description copied from interface:OptionsReturns the path to an alternate installation toolchains file.- Specified by:
altInstallationToolchainsin interfaceOptions- Returns:
- an
Optionalcontaining the file path, or empty if not set
-
logFile
Description copied from interface:OptionsReturns the path to the log file. -
rawStreams
Description copied from interface:OptionsReturns whether raw streams should be logged.- Specified by:
rawStreamsin interfaceOptions- Returns:
- a boolean indicating whether raw streams should be logged
-
color
Description copied from interface:OptionsReturns the color setting for console output. -
help
Description copied from interface:OptionsIndicates whether to show help information. -
warnAboutDeprecatedOptions
Description copied from interface:OptionsEmits warning messages if deprecated options are used.- Specified by:
warnAboutDeprecatedOptionsin interfaceOptionsprintWriter- the string consumer to use for output
-
displayHelp
Description copied from interface:OptionsDisplays help information for these options.- Specified by:
displayHelpin interfaceOptionsprintStream- the string consumer to use for output
-