Class DistributionInstallerSettings


  • public class DistributionInstallerSettings
    extends java.lang.Object
    Settings for the distribution installer.
    Since:
    1.1.2
    • Constructor Summary

      Constructors 
      Constructor Description
      DistributionInstallerSettings​(org.gradle.api.Task task, org.gradle.api.logging.LogLevel loggingLevel, java.lang.String osName, java.nio.file.Path temporaryDirectory, org.siouan.frontendgradleplugin.core.DistributionUrlResolver urlResolver, org.siouan.frontendgradleplugin.core.Downloader downloader, org.siouan.frontendgradleplugin.core.DistributionValidator validator, ArchiverFactory archiverFactory, java.nio.file.Path installDirectory)
      Builds an installer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ArchiverFactory getArchiverFactory()
      Gets the archiver factory.
      org.siouan.frontendgradleplugin.core.Downloader getDownloader()
      Gest the downloader.
      java.nio.file.Path getInstallDirectory()
      Gets the install directory.
      org.gradle.api.logging.LogLevel getLoggingLevel()
      Gets the default logging level.
      java.lang.String getOsName()
      Gets the underlying O/S name.
      org.gradle.api.Task getTask()
      Gets the related task.
      java.nio.file.Path getTemporaryDirectory()  
      org.siouan.frontendgradleplugin.core.DistributionUrlResolver getUrlResolver()
      Gets the resolver of the distribution URL.
      java.util.Optional<org.siouan.frontendgradleplugin.core.DistributionValidator> getValidator()
      Gets the distribution validator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DistributionInstallerSettings

        public DistributionInstallerSettings​(org.gradle.api.Task task,
                                             org.gradle.api.logging.LogLevel loggingLevel,
                                             java.lang.String osName,
                                             java.nio.file.Path temporaryDirectory,
                                             org.siouan.frontendgradleplugin.core.DistributionUrlResolver urlResolver,
                                             org.siouan.frontendgradleplugin.core.Downloader downloader,
                                             org.siouan.frontendgradleplugin.core.DistributionValidator validator,
                                             ArchiverFactory archiverFactory,
                                             java.nio.file.Path installDirectory)
        Builds an installer.
        Parameters:
        task - Related Gradle task.
        loggingLevel - Default logging level.
        osName - O/S name.
        temporaryDirectory - Directory where the distribution being downloaded will be temporarily stored.
        urlResolver - Resolver of the download URL.
        downloader - Downloader.
        validator - Distribution validator.
        archiverFactory - Factory providing archivers.
        installDirectory - Install directory.
    • Method Detail

      • getTask

        public org.gradle.api.Task getTask()
        Gets the related task.
        Returns:
        Task.
      • getLoggingLevel

        public org.gradle.api.logging.LogLevel getLoggingLevel()
        Gets the default logging level.
        Returns:
        Logging level.
      • getOsName

        public java.lang.String getOsName()
        Gets the underlying O/S name.
        Returns:
        O/S name.
      • getTemporaryDirectory

        public java.nio.file.Path getTemporaryDirectory()
      • getInstallDirectory

        public java.nio.file.Path getInstallDirectory()
        Gets the install directory.
        Returns:
        Install directory.
      • getUrlResolver

        public org.siouan.frontendgradleplugin.core.DistributionUrlResolver getUrlResolver()
        Gets the resolver of the distribution URL.
        Returns:
        URL.
      • getDownloader

        public org.siouan.frontendgradleplugin.core.Downloader getDownloader()
        Gest the downloader.
        Returns:
        Downloader.
      • getValidator

        public java.util.Optional<org.siouan.frontendgradleplugin.core.DistributionValidator> getValidator()
        Gets the distribution validator.
        Returns:
        Validator.
      • getArchiverFactory

        public ArchiverFactory getArchiverFactory()
        Gets the archiver factory.
        Returns:
        Factory.