Class URLEngineDownloader
java.lang.Object
ch.ivyteam.ivy.maven.engine.download.URLEngineDownloader
- All Implemented Interfaces:
EngineDownloader
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionURLEngineDownloader
(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 Summary
Modifier and TypeMethodDescriptionfindEngineDownloadUrl
(InputStream htmlStream) Extracts the name of the engine zip-file from the url used to download the engine.
-
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
- Specified by:
downloadEngine
in interfaceEngineDownloader
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
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 interfaceEngineDownloader
- 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
-