IncrementalSyncTask

interface IncrementalSyncTask : Task

A task to incrementally synchronize a set of files between directories.

Incremental synchronization support greatly reduces task execution time on subsequent builds when the set of files to be synchronized is large, but only a small amount have changed.

Properties

Link copied to clipboard
@get:OutputDirectory
abstract val destinationDirectory: Property<File>

The directory where the set of files are copied to.

Link copied to clipboard
@get:Input
abstract var duplicatesStrategy: DuplicatesStrategy

Duplicates strategy for CopySpec inside the task

Link copied to clipboard
@get:InputFiles
@get:NormalizeLineEndings
@get:IgnoreEmptyDirectories
@get:PathSensitive(value = PathSensitivity.ABSOLUTE)
@get:SkipWhenEmpty
abstract val from: ConfigurableFileCollection

The collection of paths with files to copy.