Search in sources :

Example 1 with DownloadProgress

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);
}
Also used : DownloadProgress(org.apache.tools.ant.taskdefs.Get.DownloadProgress) Get(org.apache.tools.ant.taskdefs.Get)

Aggregations

Get (org.apache.tools.ant.taskdefs.Get)1 DownloadProgress (org.apache.tools.ant.taskdefs.Get.DownloadProgress)1