Class DirConfig
-
- All Implemented Interfaces:
public class DirConfigThis is part of the project extension and describes a single directory with excludes and includes. Furthermore it contains a property for the target. The task that uses this configuration transforms this to copyspec configuration.
-
-
Method Summary
Modifier and Type Method Description final StringgetName()only for internal use in a named container. final DirectoryPropertygetDir()final SetProperty<String>getExcludes()final SetProperty<String>getIncludes()final Property<String>getTarget()final Unitexcludes(Collection<String> patterns)Adds a collection of patterns to the exclude list. final Unitexclude(String pattern)Adds a single pattern to the exclude list. final Unitincludes(Collection<String> patterns)Adds a collection of patterns to the include list. final Unitinclude(String pattern)Adds a single pattern to the include list. -
-
Constructor Detail
-
DirConfig
DirConfig(ObjectFactory objectFactory, String name)
creates a configuration of a simple copyspec.
-
-
Method Detail
-
getDir
@Optional()@InputDirectory()@PathSensitive(value = PathSensitivity.RELATIVE) final DirectoryProperty getDir()
-
getExcludes
@Optional()@Input() final SetProperty<String> getExcludes()
-
getIncludes
@Optional()@Input() final SetProperty<String> getIncludes()
-
excludes
final Unit excludes(Collection<String> patterns)
Adds a collection of patterns to the exclude list.
- Parameters:
patterns- a collection of Ant style file pattern.
-
exclude
final Unit exclude(String pattern)
Adds a single pattern to the exclude list.
- Parameters:
pattern- Ant style file pattern.
-
includes
final Unit includes(Collection<String> patterns)
Adds a collection of patterns to the include list.
- Parameters:
patterns- a collection of Ant style file pattern.
-
-
-
-