Class Check
java.lang.Object
org.apache.maven.cling.invoker.mvnup.goals.AbstractUpgradeGoal
org.apache.maven.cling.invoker.mvnup.goals.Check
- All Implemented Interfaces:
Goal
The "check" goal implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
execute
(UpgradeContext context) Executes the upgrade goal.protected boolean
Determines whether modifications should be saved to disk.Methods inherited from class org.apache.maven.cling.invoker.mvnup.goals.AbstractUpgradeGoal
createMvnDirectoryIfNeeded, doUpgrade, saveModifications
-
Constructor Details
-
Check
-
-
Method Details
-
shouldSaveModifications
protected boolean shouldSaveModifications()Description copied from class:AbstractUpgradeGoal
Determines whether modifications should be saved to disk. Apply goals return true, Check goals return false.- Specified by:
shouldSaveModifications
in classAbstractUpgradeGoal
-
execute
Description copied from class:AbstractUpgradeGoal
Executes the upgrade goal. Template method that calls doUpgrade and optionally saves modifications.- Specified by:
execute
in interfaceGoal
- Overrides:
execute
in classAbstractUpgradeGoal
- Throws:
Exception
-