Class DistributionInstaller
- java.lang.Object
-
- org.siouan.frontendgradleplugin.core.DistributionInstaller
-
public class DistributionInstaller extends java.lang.ObjectComponent that downloads and installs a distribution.
-
-
Constructor Summary
Constructors Constructor Description DistributionInstaller(DistributionInstallerSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinstall()Installs a distribution: Empty the install directory. Resolve the URL to download the distribution. Download the distribution. Validate the downloaded distribution. Explode the distribution archive. Delete the distribution archive and all unnecessary files.
-
-
-
Constructor Detail
-
DistributionInstaller
public DistributionInstaller(DistributionInstallerSettings settings)
-
-
Method Detail
-
install
public void install() throws DistributionInstallerExceptionInstalls a distribution:- Empty the install directory.
- Resolve the URL to download the distribution.
- Download the distribution.
- Validate the downloaded distribution.
- Explode the distribution archive.
- Delete the distribution archive and all unnecessary files.
- Throws:
DistributionInstallerException- If the installer failed.
-
-