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.
      • 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().