Class AttachedOutputs

java.lang.Object
org.apache.maven.buildcache.xml.config.AttachedOutputs
All Implemented Interfaces:
Serializable

public class AttachedOutputs extends Object implements Serializable
Section relative to outputs which are not artifacts but need to be saved/restored.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • AttachedOutputs

      public AttachedOutputs()
  • Method Details

    • addDirName

      public void addDirName(DirName dirName)
      Method addDirName.
      Parameters:
      dirName - a dirName object.
    • getDirNames

      public List<DirName> getDirNames()
      Method getDirNames.
      Returns:
      List
    • isPreservePermissions

      public boolean isPreservePermissions()
      Get preserve Unix file permissions when saving/restoring attached outputs. When enabled, permissions are stored in ZIP entry headers and become part of the cache key, ensuring cache invalidation when permissions change. This is similar to how Git includes file mode in tree hashes. Disabling this may improve portability across different systems but will not preserve executable bits.
      Returns:
      boolean
    • removeDirName

      public void removeDirName(DirName dirName)
      Method removeDirName.
      Parameters:
      dirName - a dirName object.
    • setDirNames

      public void setDirNames(List<DirName> dirNames)
      Set path to a directory containing files which needs to be saved/restored (relative to the build directory).
      Parameters:
      dirNames - a dirNames object.
    • setPreservePermissions

      public void setPreservePermissions(boolean preservePermissions)
      Set preserve Unix file permissions when saving/restoring attached outputs. When enabled, permissions are stored in ZIP entry headers and become part of the cache key, ensuring cache invalidation when permissions change. This is similar to how Git includes file mode in tree hashes. Disabling this may improve portability across different systems but will not preserve executable bits.
      Parameters:
      preservePermissions - a preservePermissions object.