Package org.apache.maven.plugins.invoker
Class Selector
java.lang.Object
org.apache.maven.plugins.invoker.Selector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final String
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
private final AbstractInvokerMojo.ToolchainPrivateManager
-
Constructor Summary
ConstructorsConstructorDescriptionSelector
(String actualMavenVersion, String actualJavaVersion, AbstractInvokerMojo.ToolchainPrivateManager toolchainPrivateManager) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
getGlobal
(InvokerProperties invokerProperties) Determines whether selector conditions of the specified invoker properties match the current environment.int
getSelection
(InvokerProperties invokerProperties)
-
Field Details
-
SELECTOR_MAVENVERSION
static final int SELECTOR_MAVENVERSION- See Also:
-
SELECTOR_JREVERSION
static final int SELECTOR_JREVERSION- See Also:
-
SELECTOR_OSFAMILY
static final int SELECTOR_OSFAMILY- See Also:
-
SELECTOR_TOOLCHAIN
static final int SELECTOR_TOOLCHAIN- See Also:
-
SELECTOR_MULTI
static final int SELECTOR_MULTI- See Also:
-
actualMavenVersion
-
actualJavaVersion
-
toolchainPrivateManager
-
-
Constructor Details
-
Selector
Selector(String actualMavenVersion, String actualJavaVersion, AbstractInvokerMojo.ToolchainPrivateManager toolchainPrivateManager)
-
-
Method Details
-
getSelection
-
getGlobal
Determines whether selector conditions of the specified invoker properties match the current environment.- Parameters:
invokerProperties
- The invoker properties to check, must not benull
.- Returns:
0
if the job corresponding to the properties should be run, otherwise a bitwise value representing the reason why it should be skipped.
-