Class URLEngineDownloader

java.lang.Object
ch.ivyteam.ivy.maven.engine.download.URLEngineDownloader
All Implemented Interfaces:
EngineDownloader

public class URLEngineDownloader extends Object implements EngineDownloader
  • Field Details

    • proxies

      public org.apache.maven.wagon.proxy.ProxyInfoProvider proxies
  • Constructor Details

    • URLEngineDownloader

      public URLEngineDownloader(URL engineDownloadUrl, URL engineListPageUrl, String osArchitecture, String ivyVersion, org.apache.maven.artifact.versioning.VersionRange ivyVersionRange, org.apache.maven.plugin.logging.Log log, File downloadDirectory, org.apache.maven.wagon.proxy.ProxyInfoProvider proxies)
  • Method Details

    • downloadEngine

      public File downloadEngine() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      downloadEngine in interface EngineDownloader
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getZipFileNameFromDownloadLocation

      public String getZipFileNameFromDownloadLocation()
      Extracts the name of the engine zip-file from the url used to download the engine. The zip-file name is only known after downloading the engine. Since the download-url might be extracted from an engine list-page. The returned zip-file name is not necessarily equal to the name of the downloaded zip-file, since the downloaded file could have been renamed to avoid name conflicts.
      Specified by:
      getZipFileNameFromDownloadLocation in interface EngineDownloader
      Returns:
      engine zip file-name
    • findEngineDownloadUrl

      public URL findEngineDownloadUrl(InputStream htmlStream) throws org.apache.maven.plugin.MojoExecutionException, MalformedURLException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      MalformedURLException