Package org.gradle.api.file
Interface SyncSpec
- All Superinterfaces:
- ContentFilterable,- CopyProcessingSpec,- CopySourceSpec,- CopySpec,- PatternFilterable
Synchronizes the contents of a destination directory with some source directories and files.
- Since:
- 7.5
- 
Method SummaryModifier and TypeMethodDescriptionReturns the filter that defines which files to preserve in the destination directory.preserve(Action<? super PatternFilterable> action) Configures the filter that defines which files to preserve in the destination directory.Methods inherited from interface org.gradle.api.file.CopyProcessingSpecdirPermissions, filePermissions, getDirMode, getDirPermissions, getFileMode, getFilePermissions, setDirMode, setFileModeMethods inherited from interface org.gradle.api.file.CopySpeceachFile, eachFile, exclude, exclude, exclude, exclude, expand, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDuplicatesStrategy, getFilteringCharset, getIncludeEmptyDirs, include, include, include, include, into, into, into, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDuplicatesStrategy, setExcludes, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withMethods inherited from interface org.gradle.api.tasks.util.PatternFilterablegetExcludes, getIncludes
- 
Method Details- 
getPreserveReturns the filter that defines which files to preserve in the destination directory.- Returns:
- the filter defining the files to preserve
 
- 
preserveConfigures the filter that defines which files to preserve in the destination directory.- Parameters:
- action- Action for configuring the preserve filter
- Returns:
- this
 
 
-