Class Downloader

java.lang.Object
com.vaadin.copilot.Downloader

public class Downloader extends Object
  • Method Details

    • downloadFile

      public static void downloadFile(URL url, File target, ProjectManager projectManager, com.vaadin.flow.server.frontend.installer.FileDownloader.ProgressListener progressListener) throws URISyntaxException, com.vaadin.flow.server.frontend.installer.DownloadException
      Downloads a file from the given URL to the target file.
      Parameters:
      url - the URL to download from
      target - the target file to download to
      projectManager - the project manager to use to detect proxy configuration
      progressListener - the progress listener to use for tracking the download progress
      Throws:
      URISyntaxException
      com.vaadin.flow.server.frontend.installer.DownloadException