Class DirectoryEntry


  • public class DirectoryEntry
    extends Object
    This models a set of directory entries on the target system. There may be several of these that point to the same directory, each with different properties (e.g. a set of executables, a set of config files.) This has the same flags as each individual file, meaning every file in the target directory is processed the same, unless the file is specifically overridden. files, etc).

    Created by Jeff Gaynor
    on 6/13/24 at 11:28 AM

    • Constructor Detail

      • DirectoryEntry

        public DirectoryEntry()
    • Method Detail

      • getSourceURL

        public String getSourceURL()
      • setSourceURL

        public void setSourceURL​(String sourceURL)
      • size

        public int size()
      • getTargetDir

        public String getTargetDir()
      • setTargetDir

        public void setTargetDir​(String targetDir)
      • hasExecutable

        public boolean hasExecutable()
      • hasUseTemplates

        public boolean hasUseTemplates()
      • hasUpdateable

        public boolean hasUpdateable()
      • hasFiles

        public boolean hasFiles()
      • isExecutable

        public Boolean isExecutable()
      • setExecutable

        public void setExecutable​(Boolean executable)
      • isUseTemplates

        public Boolean isUseTemplates()
      • setUseTemplates

        public void setUseTemplates​(Boolean useTemplates)
      • isUpdateable

        public Boolean isUpdateable()
      • setUpdateable

        public void setUpdateable​(Boolean updateable)
      • getIgnoredFiles

        public List<String> getIgnoredFiles()
        In jar archives, a list of files and directories to ignore
        Returns:
      • setIgnoredFiles

        public void setIgnoredFiles​(List<String> ignoredFiles)
      • hasExcludedFiles

        public boolean hasExcludedFiles()
      • hasFilePermssions

        public boolean hasFilePermssions()
      • getFilePermissions

        public Map<String,​FileEntry> getFilePermissions()
        These are only processed for zip archives.
        Returns:
      • setFilePermissions

        public void setFilePermissions​(Map<String,​FileEntry> filePermissions)
      • getIgnoredDirectories

        public List<String> getIgnoredDirectories()
        Sniff through the excluded files and returns the ones that end in /, i.e., the directories. This is computed anew each time, so just stash it
        Returns: