public class DirConfig
This 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.
@Inject
public DirConfig(@NotNull
org.gradle.api.model.ObjectFactory objectFactory,
@NotNull
java.lang.String name)
creates a configuration of a simple copyspec.
name - only for internal use in a named container.@Optional @InputDirectory @NotNull public org.gradle.api.file.DirectoryProperty getDir()
@Optional @Input @NotNull public org.gradle.api.provider.SetProperty<java.lang.String> getExcludes()
public void exclude(@NotNull
java.lang.String pattern)
Adds a single pattern to the exclude list.
pattern - Ant style file pattern.public void excludes(@NotNull
java.util.Collection<java.lang.String> patterns)
Adds a collection of patterns to the exclude list.
patterns - a collection of Ant style file pattern.@Optional @Input @NotNull public org.gradle.api.provider.SetProperty<java.lang.String> getIncludes()
public void include(@NotNull
java.lang.String pattern)
Adds a single pattern to the include list.
pattern - Ant style file pattern.public void includes(@NotNull
java.util.Collection<java.lang.String> patterns)
Adds a collection of patterns to the include list.
patterns - a collection of Ant style file pattern.@Optional @Input @NotNull public org.gradle.api.provider.Property<java.lang.String> getTarget()
@NotNull public java.lang.String getName()
only for internal use in a named container.