Package org.apache.maven.cling.invoker
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
Options that are "layered" by precedence order.
-
Field Summary
Fields inherited from interface org.apache.maven.api.cli.Options
SOURCE_CLI
-
Constructor Summary
-
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, PrintWriter 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.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, PrintWriter 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
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
-
source
Description copied from interface:Options
Returns a simple designator of the options source, such as "cli", "maven.conf", etc. -
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
- Parameters:
printWriter
- the PrintWriter to use for output
-
displayHelp
Description copied from interface:Options
Displays help information for these options.- Specified by:
displayHelp
in interfaceOptions
- Parameters:
printWriter
- the PrintWriter to use for output
-
returnFirstPresentOrEmpty
-
collectListIfPresentOrEmpty
-
collectMapIfPresentOrEmpty
-