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 TypeMethodDescriptionintexecute(UpgradeContext context) Executes the upgrade goal.protected booleanDetermines 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:AbstractUpgradeGoalDetermines whether modifications should be saved to disk. Apply goals return true, Check goals return false.- Specified by:
shouldSaveModificationsin classAbstractUpgradeGoal
-
execute
Description copied from class:AbstractUpgradeGoalExecutes the upgrade goal. Template method that calls doUpgrade and optionally saves modifications.- Specified by:
executein interfaceGoal- Overrides:
executein classAbstractUpgradeGoal- Throws:
Exception
-