Class DefaultProgress
- java.lang.Object
-
- org.codehaus.plexus.build.progress.DefaultProgress
-
-
Constructor Summary
Constructors Constructor Description DefaultProgress(org.apache.maven.plugin.MojoExecution execution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCancelRequested()This 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 reportedvoidstartTask(java.lang.String task, int work)Reports 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
-
-
-
Method Detail
-
startTask
public void startTask(java.lang.String task, int work)Description copied from interface:ProgressReports that the mojo has started the given task with the given amount of work.
-
worked
public void worked(int work)
Description copied from interface:ProgressReports a given amount of work was processed
-
setRemaining
public void setRemaining(int work)
Description copied from interface:ProgressNotifies the remaining amount of work that will be reported- Specified by:
setRemainingin interfaceProgress
-
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.
-
-