Package com.vaadin.copilot
Class Downloader
java.lang.Object
com.vaadin.copilot.Downloader
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddownloadFile(URL url, File target, ProjectManager projectManager, com.vaadin.flow.server.frontend.installer.FileDownloader.ProgressListener progressListener) Downloads a file from the given URL to the target file.
-
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 fromtarget- the target file to download toprojectManager- the project manager to use to detect proxy configurationprogressListener- the progress listener to use for tracking the download progress- Throws:
URISyntaxExceptioncom.vaadin.flow.server.frontend.installer.DownloadException
-