Class AttachedOutputs
java.lang.Object
org.apache.maven.buildcache.xml.config.AttachedOutputs
- All Implemented Interfaces:
Serializable
Section relative to outputs which are not artifacts but need to
be saved/restored.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirName(DirName dirName) Method addDirName.Method getDirNames.booleanGet preserve Unix file permissions when saving/restoring attached outputs.voidremoveDirName(DirName dirName) Method removeDirName.voidsetDirNames(List<DirName> dirNames) Set path to a directory containing files which needs to be saved/restored (relative to the build directory).voidsetPreservePermissions(boolean preservePermissions) Set preserve Unix file permissions when saving/restoring attached outputs.
-
Constructor Details
-
AttachedOutputs
public AttachedOutputs()
-
-
Method Details
-
addDirName
Method addDirName.- Parameters:
dirName- a dirName object.
-
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
Method removeDirName.- Parameters:
dirName- a dirName object.
-
setDirNames
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.
-