Class DefaultProgress
java.lang.Object
org.codehaus.plexus.build.progress.DefaultProgress
- All Implemented Interfaces:
Progress
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method should be used to check if the user has requested to finish the current work and break out early.voidsetRemaining(int work) Notifies the remaining amount of work that will be reportedvoidReports that the mojo has started the given task with the given amount of work.voidworked(int work) Reports a given amount of work was processed
-
Constructor Details
-
DefaultProgress
@Inject public DefaultProgress(org.apache.maven.plugin.MojoExecution execution)
-
-
Method Details
-
startTask
Description copied from interface:ProgressReports that the mojo has started the given task with the given amount of work. -
worked
-
setRemaining
public void setRemaining(int work) Description copied from interface:ProgressNotifies the remaining amount of work that will be reported- Specified by:
setRemainingin interfaceProgress- Parameters:
work-
-
isCancelRequested
public boolean isCancelRequested()Description copied from interface:ProgressThis method should be used to check if the user has requested to finish the current work and break out early.- Specified by:
isCancelRequestedin interfaceProgress- Returns:
trueif a cancel request is currently pending.
-