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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final CommonsCliOptions.CLIManagerprotected final org.apache.commons.cli.CommandLineprotected final StringFields inherited from interface org.apache.maven.api.cli.OptionsSOURCE_CLI
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCommonsCliOptions(String source, CommonsCliOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) 
- 
Method SummaryModifier 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, PrintWriter 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, PrintWriter printWriter) Emits warning messages if deprecated options are used.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.cli.Optionsinterpolate
- 
Field Details- 
source
- 
cliManager
- 
commandLineprotected final org.apache.commons.cli.CommandLine commandLine
 
- 
- 
Constructor Details- 
CommonsCliOptionsprotected CommonsCliOptions(String source, CommonsCliOptions.CLIManager cliManager, org.apache.commons.cli.CommandLine commandLine) 
 
- 
- 
Method Details- 
sourceDescription copied from interface:OptionsReturns a simple designator of the options source, such as "cli", "maven.conf", etc.
- 
userPropertiesDescription copied from interface:OptionsReturns the user-defined properties for the Maven execution.- Specified by:
- userPropertiesin interface- Options
- Returns:
- an Optionalcontaining the map of user properties, or empty if not set
 
- 
showVersionAndExitDescription copied from interface:OptionsIndicates whether to show the version information and exit.- Specified by:
- showVersionAndExitin interface- Options
- Returns:
- an Optionalcontaining the boolean flag, or empty if not set
 
- 
showVersionDescription copied from interface:OptionsIndicates whether to show the version information.- Specified by:
- showVersionin interface- Options
- Returns:
- an Optionalcontaining the boolean flag, or empty if not set
 
- 
quietDescription copied from interface:OptionsIndicates whether to run in quiet mode.
- 
verboseDescription copied from interface:OptionsIndicates whether to run in verbose mode.
- 
showErrorsDescription copied from interface:OptionsIndicates whether to show error stack traces.- Specified by:
- showErrorsin interface- Options
- Returns:
- an Optionalcontaining the boolean flag, or empty if not set
 
- 
failOnSeverityDescription copied from interface:OptionsReturns the severity level at which the build should fail.- Specified by:
- failOnSeverityin interface- Options
- Returns:
- an Optionalcontaining the fail-on-severity string, or empty if not set
 
- 
nonInteractiveDescription copied from interface:OptionsIndicates whether to run in non-interactive mode.- Specified by:
- nonInteractivein interface- Options
- Returns:
- an Optionalcontaining the boolean flag, or empty if not set
 
- 
forceInteractiveDescription copied from interface:OptionsIndicates whether to force interactive mode.- Specified by:
- forceInteractivein interface- Options
- Returns:
- an Optionalcontaining the boolean flag, or empty if not set
 
- 
altUserSettingsDescription copied from interface:OptionsReturns the path to an alternate user settings file.- Specified by:
- altUserSettingsin interface- Options
- Returns:
- an Optionalcontaining the file path, or empty if not set
 
- 
altProjectSettingsDescription copied from interface:OptionsReturns the path to an alternate project settings file.- Specified by:
- altProjectSettingsin interface- Options
- Returns:
- an Optionalcontaining the file path, or empty if not set
 
- 
altInstallationSettingsDescription copied from interface:OptionsReturns the path to an alternate installation settings file.- Specified by:
- altInstallationSettingsin interface- Options
- Returns:
- an Optionalcontaining the file path, or empty if not set
 
- 
altUserToolchainsDescription copied from interface:OptionsReturns the path to an alternate user toolchains file.- Specified by:
- altUserToolchainsin interface- Options
- Returns:
- an Optionalcontaining the file path, or empty if not set
 
- 
altInstallationToolchainsDescription copied from interface:OptionsReturns the path to an alternate installation toolchains file.- Specified by:
- altInstallationToolchainsin interface- Options
- Returns:
- an Optionalcontaining the file path, or empty if not set
 
- 
logFileDescription copied from interface:OptionsReturns the path to the log file.
- 
rawStreamsDescription copied from interface:OptionsReturns whether raw streams should be logged.- Specified by:
- rawStreamsin interface- Options
- Returns:
- a boolean indicating whether raw streams should be logged
 
- 
colorDescription copied from interface:OptionsReturns the color setting for console output.
- 
helpDescription copied from interface:OptionsIndicates whether to show help information.
- 
warnAboutDeprecatedOptionsDescription copied from interface:OptionsEmits warning messages if deprecated options are used.- Specified by:
- warnAboutDeprecatedOptionsin interface- Options
- Parameters:
- printWriter- the PrintWriter to use for output
 
- 
displayHelpDescription copied from interface:OptionsDisplays help information for these options.- Specified by:
- displayHelpin interface- Options
- Parameters:
- printStream- the PrintWriter to use for output
 
 
-