Enum Class WsGoal
- All Implemented Interfaces:
Serializable, Comparable<WsGoal>, Constable
Compile-time identity for every
ws:* goal in this plugin. Each
value wraps the bare goal name, the mojo class that implements it, and
a short human description.
Callers that invoke ws goals from Java — for subprocess exec, for
the WorkspaceReportSpec a goal returns, for javadoc examples
that survive a rename — should reference these enum values rather
than string literals. Find Usages then
surfaces every consumer when a goal is renamed, and the
exhaustiveness guard in WsGoalExhaustivenessTest ensures the
enum stays in lockstep with @Mojo declarations.
See issue #165.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSharedws:prefix for all goals in this plugin. -
Method Summary
Modifier and TypeMethodDescriptionOne-line human description of what this goal does.goalName()The bare goal name as it appears in@Mojo(name = ...).Class<? extends org.apache.maven.api.plugin.Mojo> The mojo class that implements this goal.The fully-qualified goal invocation, e.g.static WsGoalReturns the enum constant of this class with the specified name.static WsGoal[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
-
ALIGN_DRAFT
-
ALIGN_PUBLISH
-
CHECK_BRANCH
-
CHECKPOINT_DRAFT
-
CHECKPOINT_PUBLISH
-
CLEANUP_DRAFT
-
CLEANUP_PUBLISH
-
COMMIT
-
FEATURE_ABANDON_DRAFT
-
FEATURE_ABANDON_PUBLISH
-
FEATURE_FINISH_MERGE_DRAFT
-
FEATURE_FINISH_MERGE_PUBLISH
-
FEATURE_FINISH_SQUASH_DRAFT
-
FEATURE_FINISH_SQUASH_PUBLISH
-
FEATURE_START_DRAFT
-
FEATURE_START_PUBLISH
-
GRAPH
-
HELP
-
LINT
-
OVERVIEW
-
POST_RELEASE
-
PULL
-
PUSH
-
RECONCILE_BRANCHES_DRAFT
-
RECONCILE_BRANCHES_PUBLISH
-
REFRESH_MAIN
-
RELEASE_DRAFT
-
RELEASE_NOTES
-
RELEASE_PUBLISH
-
RELEASE_STATUS
-
REMOVE
-
REPORT
-
SCAFFOLD_DRAFT
-
SCAFFOLD_INIT
-
SCAFFOLD_PUBLISH
-
STIGNORE
-
SWITCH_DRAFT
-
SWITCH_PUBLISH
-
SYNC
-
UPDATE_FEATURE_DRAFT
-
UPDATE_FEATURE_PUBLISH
-
VERIFY_CONVERGENCE
-
-
Field Details
-
PLUGIN_PREFIX
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
goalName
The bare goal name as it appears in@Mojo(name = ...). -
qualified
The fully-qualified goal invocation, e.g."ws:align-publish". -
mojoClass
The mojo class that implements this goal. -
description
One-line human description of what this goal does.
-