use of org.apache.tools.ant.taskdefs.Get.DownloadProgress in project ci.ant by WASdev.
the class InstallLibertyTask method onlineDownload.
private void onlineDownload(URL source, File dest) throws IOException {
Get get = (Get) getProject().createTask("get");
DownloadProgress progress = null;
if (verbose) {
progress = new Get.VerboseProgress(System.out);
}
get.setUseTimestamp(true);
get.setUsername(username);
get.setPassword(password);
get.setMaxTime(maxDownloadTime);
get.doGet(source, dest, Project.MSG_INFO, progress);
}
Aggregations