Class LayeredOptions<O extends Options>
java.lang.Object
org.apache.maven.cling.invoker.LayeredOptions<O>
- Type Parameters:
O
- The type of options.
- All Implemented Interfaces:
Options
- Direct Known Subclasses:
LayeredMavenOptions
-
Field Summary
FieldsFields inherited from interface org.apache.maven.api.cli.Options
SOURCE_CLI
-
Constructor Summary
Constructors -
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> printWriter) 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.offline()
Indicates whether Maven should operate in offline mode.quiet()
Indicates whether to run in quiet mode.Returns whether raw streams should be logged.protected <T> Optional
<T> returnFirstPresentOrEmpty
(Function<O, Optional<T>> getter) 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
-
options
-
-
Constructor Details
-
LayeredOptions
-
-
Method Details
-
userProperties
-
source
-
showVersionAndExit
-
showVersion
-
quiet
-
verbose
-
showErrors
-
failOnSeverity
-
nonInteractive
-
forceInteractive
-
altUserSettings
-
altProjectSettings
-
altInstallationSettings
-
altUserToolchains
-
altInstallationToolchains
-
logFile
-
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
-
offline
-
help
-
warnAboutDeprecatedOptions
Description copied from interface:Options
Emits warning messages if deprecated options are used.- Specified by:
warnAboutDeprecatedOptions
in interfaceOptions
- Parameters:
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
- Parameters:
printWriter
- the string consumer to use for output
-
returnFirstPresentOrEmpty
-
collectListIfPresentOrEmpty
-
collectMapIfPresentOrEmpty
-