Search in sources :

Example 6 with FileDownloader

use of org.graalvm.component.installer.remote.FileDownloader in project graal by oracle.

the class GenerateCatalog method downloadFiles.

private void downloadFiles() throws IOException {
    for (Spec spec : componentSpecs) {
        if (spec.f == null) {
            FileDownloader dn = new FileDownloader(spec.u, createURL(spec.u), env);
            dn.setDisplayProgress(true);
            dn.download();
            spec.f = dn.getLocalFile();
        }
    }
}
Also used : FileDownloader(org.graalvm.component.installer.remote.FileDownloader)

Aggregations

FileDownloader (org.graalvm.component.installer.remote.FileDownloader)6 URL (java.net.URL)5 IOException (java.io.IOException)3 Properties (java.util.Properties)2 Version (org.graalvm.component.installer.Version)2 RemotePropertiesStorage (org.graalvm.component.installer.remote.RemotePropertiesStorage)2 FileInputStream (java.io.FileInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 ConnectException (java.net.ConnectException)1 MalformedURLException (java.net.MalformedURLException)1 NoRouteToHostException (java.net.NoRouteToHostException)1 Path (java.nio.file.Path)1 Matcher (java.util.regex.Matcher)1 Pattern (java.util.regex.Pattern)1 Feedback (org.graalvm.component.installer.Feedback)1 IncompatibleException (org.graalvm.component.installer.IncompatibleException)1 SoftwareChannelSource (org.graalvm.component.installer.SoftwareChannelSource)1 WebCatalog (org.graalvm.component.installer.ce.WebCatalog)1 ComponentRegistry (org.graalvm.component.installer.model.ComponentRegistry)1 MergeStorage (org.graalvm.component.installer.remote.MergeStorage)1