public static interface RepositoryPlugin.DownloadListener
Modifier and Type | Method and Description |
---|---|
void |
failure(File file,
String reason)
Called when the file could not be downloaded from a remote
repository.
|
boolean |
progress(File file,
int percentage)
Can be called back regularly before success/failure but never after.
|
void |
success(File file)
Called when the file is successfully downloaded from a remote
repository.
|
void success(File file) throws Exception
file
- The file that was downloadedException
- , are logged and ignoredvoid failure(File file, String reason) throws Exception
file
- The file that was intended to be downloaded.Exception
- , are logged and ignoredboolean progress(File file, int percentage) throws Exception
file
- The file that was intended to be downloadedpercentage
- Percentage of file downloaded (can go down)Exception
- , are logged and ignoredCopyright © 2021 aQute SARL. All rights reserved.