Downloads an MSI to use at a later stage.
Type | Name and description |
---|---|
static String |
LESSMSI_DOWNLOAD_URI |
static String |
LESSMSI_VERSION |
Constructor and description |
---|
LessMSIUnpackerTool
(Project project) Creates setup for installing to a local cache. |
Type Params | Return Type | Name and description |
---|---|---|
|
protected File |
getAndVerifyDistributionRoot(File distDir, String distributionDescription) Validates that the unpacked distribution is good. |
|
File |
getLessMSIExecutablePath() Returns the path to the lessmsi executable.
|
|
void |
unpackMSI(File srcArchive, File destDir, java.util.Map<String, String> env) Unpacks an MSI given the lessmsi executable downloaded by this incantation. |
|
URI |
uriFromVersion(String version) Creates a download URI from a given distribution version |
Methods inherited from class | Name |
---|---|
class AbstractDistributionInstaller |
addExecPattern, getAndVerifyDistributionRoot, getDistributionRoot, getLogger, getProject, listDirs, locateDistributionInCustomLocation, setChecksum, setDownloadRoot, setSdkManCandidateName, unpack, unpackMSI, uriFromVersion, verifyDownloadChecksum |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Creates setup for installing to a local cache.
project
- Gradle project that this downloader is attached to.Validates that the unpacked distribution is good.
distDir
as Packer
distributions contains only a single executable.distDir
- Directory where distribution was unpacked to.distributionDescription
- A descriptive name of the distribution Returns the path to the lessmsi
executable.
Will force a download if not already downloaded.
lessmsi
or null if not a supported operating system. Unpacks an MSI given the lessmsi
executable downloaded by this incantation.
srcArchive
- Location of MSIdestDir
- Directory to unpack toenv
- Environment to use when unpacking. If null or empty will add TEMP
, TMP
from Gradle environment.Groovy Documentation