TaskFilePropertyBuilder
, TaskPropertyBuilder
public interface TaskInputFilePropertyBuilder extends TaskFilePropertyBuilder
Modifier and Type | Method | Description |
---|---|---|
TaskInputFilePropertyBuilder |
ignoreEmptyDirectories() |
Ignore directories during up-to-date checks and build cache key calculations.
|
TaskInputFilePropertyBuilder |
ignoreEmptyDirectories(boolean ignoreEmptyDirectories) |
Sets whether directories should be considered during up-to-date checks and build cache key calculations.
|
TaskInputFilePropertyBuilder |
normalizeLineEndings() |
Normalize line endings in text files during up-to-date checks and build cache key calculations.
|
TaskInputFilePropertyBuilder |
normalizeLineEndings(boolean ignoreLineEndings) |
Sets whether line endings should be normalized during up-to-date checks and build cache key calculations.
|
TaskInputFilePropertyBuilder |
optional() |
Marks a task property as optional.
|
TaskInputFilePropertyBuilder |
optional(boolean optional) |
Sets whether the task property is optional.
|
TaskInputFilePropertyBuilder |
skipWhenEmpty() |
Skip executing the task if the property contains no files.
|
TaskInputFilePropertyBuilder |
skipWhenEmpty(boolean skipWhenEmpty) |
Sets whether executing the task should be skipped if the property contains no files.
|
TaskInputFilePropertyBuilder |
withNormalizer(Class<? extends FileNormalizer> normalizer) |
Sets the normalizer to use for this property.
|
TaskInputFilePropertyBuilder |
withPathSensitivity(PathSensitivity sensitivity) |
Sets which part of the path of files should be considered during up-to-date checks and build cache key calculations.
|
TaskInputFilePropertyBuilder |
withPropertyName(String propertyName) |
Sets the name for this property.
|
TaskInputFilePropertyBuilder withPropertyName(String propertyName)
If the method is not called, or if it is called with null
, a name
will be assigned to the property automatically.
withPropertyName
in interface TaskFilePropertyBuilder
TaskInputFilePropertyBuilder skipWhenEmpty()
TaskInputFilePropertyBuilder skipWhenEmpty(boolean skipWhenEmpty)
TaskInputFilePropertyBuilder optional()
TaskInputFilePropertyBuilder optional(boolean optional)
TaskInputFilePropertyBuilder withPathSensitivity(PathSensitivity sensitivity)
TaskInputFilePropertyBuilder withNormalizer(Class<? extends FileNormalizer> normalizer)
TaskInputFilePropertyBuilder ignoreEmptyDirectories()
TaskInputFilePropertyBuilder ignoreEmptyDirectories(boolean ignoreEmptyDirectories)
ignoreEmptyDirectories()
.@Incubating TaskInputFilePropertyBuilder normalizeLineEndings()
@Incubating TaskInputFilePropertyBuilder normalizeLineEndings(boolean ignoreLineEndings)
normalizeLineEndings()
.