Class Tar.TarFileSet

All Implemented Interfaces:
Cloneable, Iterable<Resource>, ResourceCollection, SelectorContainer
Enclosing class:
Tar

public static class Tar.TarFileSet extends TarFileSet
This is a FileSet with the option to specify permissions and other attributes.
  • Constructor Details

    • TarFileSet

      public TarFileSet(FileSet fileset)
      Creates a new TarFileSet instance. Using a fileset as a constructor argument.
      Parameters:
      fileset - a FileSet value
    • TarFileSet

      public TarFileSet()
      Creates a new TarFileSet instance.
  • Method Details

    • getFiles

      public String[] getFiles(Project p)
      Get a list of files and directories specified in the fileset.
      Parameters:
      p - the current project.
      Returns:
      a list of file and directory names, relative to the baseDir for the project.
    • setMode

      public void setMode(String octalString)
      A 3 digit octal string, specify the user, group and other modes in the standard Unix fashion; optional, default=0644
      Parameters:
      octalString - a 3 digit octal string.
    • getMode

      public int getMode()
      Returns:
      the current mode.
    • setPreserveLeadingSlashes

      public void setPreserveLeadingSlashes(boolean b)
      Flag to indicates whether leading `/'s should be preserved in the file names. Optional, default is false.
      Parameters:
      b - the leading slashes flag.
    • getPreserveLeadingSlashes

      public boolean getPreserveLeadingSlashes()
      Returns:
      the leading slashes flag.