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 normalizeLineEndings) |
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(java.lang.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(java.lang.String propertyName) |
Sets the name for this property.
|
TaskInputFilePropertyBuilder withPropertyName(java.lang.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(java.lang.Class<? extends FileNormalizer> normalizer)
TaskInputFilePropertyBuilder ignoreEmptyDirectories()
TaskInputFilePropertyBuilder ignoreEmptyDirectories(boolean ignoreEmptyDirectories)
ignoreEmptyDirectories()
.TaskInputFilePropertyBuilder normalizeLineEndings()
Line ending normalization is only supported with ASCII encoding and its supersets (i.e. UTF-8, ISO-8859-1, etc). Other encodings (e.g. UTF-16) will be treated as binary files and will not be subject to line ending normalization.
TaskInputFilePropertyBuilder normalizeLineEndings(boolean normalizeLineEndings)
normalizeLineEndings()
.normalizeLineEndings
- whether line endings should be normalized