public class ProgressLoggerWrapper
extends java.lang.Object
| Constructor and Description |
|---|
ProgressLoggerWrapper(org.gradle.api.logging.Logger logger)
Create a progress logger wrapper
|
| Modifier and Type | Method and Description |
|---|---|
void |
completed()
Complete an operation
|
void |
incrementProgress(long increment)
Increment the number of bytes processed
|
void |
init(java.lang.Object servicesOwner,
java.lang.String src)
Initialize the progress logger wrapper
|
void |
setDestFileName(java.lang.String destFileName)
Set the name of the destination file
|
void |
setSize(long size)
The total number of bytes to process and reset progress
|
void |
started()
Start on operation
|
public ProgressLoggerWrapper(org.gradle.api.logging.Logger logger)
logger - the Gradle loggerpublic void init(java.lang.Object servicesOwner,
java.lang.String src)
throws java.lang.ClassNotFoundException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
servicesOwner - the Gradle services ownersrc - the URL to the file to be downloadedjava.lang.ClassNotFoundException - if one of Gradle's internal classes
could not be foundjava.lang.NoSuchMethodException - if the interface of one of Gradle's
internal classes has changedjava.lang.reflect.InvocationTargetException - if a method from one of Gradle's
internal classes could not be invokedjava.lang.IllegalAccessException - if a method from one of Gradle's
internal classes is not accessiblepublic void started()
public void completed()
public void setSize(long size)
size - the total sizepublic void setDestFileName(java.lang.String destFileName)
destFileName - the file namepublic void incrementProgress(long increment)
increment - the increment