Class AbstractDirectoryPackager

    • Constructor Detail

      • AbstractDirectoryPackager

        public AbstractDirectoryPackager​(String targetDirectory)
        Parameters:
        targetDirectory - the directory where the container distribution and its local configuration will be packaged
    • Method Detail

      • getTargetDirectory

        public String getTargetDirectory()
        Returns:
        the directory where the container distribution and its local configuration will be packaged
      • getFileHandler

        protected FileHandler getFileHandler()
        Returns:
        the Cargo file utility class
      • setFileHandler

        protected void setFileHandler​(FileHandler fileHandler)
        Parameters:
        fileHandler - the Cargo file utility class to use. This method is useful for unit testing with Mock objects as it can be passed a test file handler that doesn't perform any real file action.
      • setLogger

        public void setLogger​(Logger logger)
        Overriden in order to set the logger on ancillary components.
        Specified by:
        setLogger in interface Loggable
        Overrides:
        setLogger in class LoggedObject
        Parameters:
        logger - the logger to set and set in the ancillary objects
      • packageContainer

        public void packageContainer​(InstalledLocalContainer container)
        Package an installed container distribution and its local configuration in a single location.
        Specified by:
        packageContainer in interface Packager
        Parameters:
        container - the installed container to package
      • getConfigurationExclusions

        protected abstract List<String> getConfigurationExclusions()
        Returns:
        the list of configuration files (specified as Ant File patterns) which will not be present in the generated package. These files are files found in LocalConfiguration.getHome().