# include

open fun include(includes: Array<String>): PatternSet(source)

Adds an Ant style include pattern. This method may be called multiple times to append new patterns and multiple patterns may be specified in a single call. If includes are not provided, then all files in this container will be included. If includes are provided, then a file must match at least one of the include patterns to be processed.

#### Return

this

#### Since

0.7

#### Parameters

includes

a vararg list of include patterns

#### See also

PatternFilterable

Pattern Format

open fun include(includes: Iterable): PatternSet(source)

Adds an Ant style include pattern. This method may be called multiple times to append new patterns and multiple patterns may be specified in a single call. If includes are not provided, then all files in this container will be included. If includes are provided, then a file must match at least one of the include patterns to be processed.

#### Return

this

#### Since

0.7

#### Parameters

includes

a Iterable providing more include patterns

#### See also

PatternFilterable

Pattern Format

open fun include(spec: Spec<FileTreeElement>): PatternSet(source)

Adds an include spec. This method may be called multiple times to append new specs. If includes are not provided, then all files in this container will be included. If includes are provided, then a file must match at least one of the include patterns or specs to be included.

#### Return

this

#### Since

0.9

#### Parameters

includeSpec

the spec to add

#### See also

PatternFilterable

Pattern Format

open fun include(closure: Closure): PatternSet(source)

Adds an include spec. This method may be called multiple times to append new specs. The given closure is passed a org.gradle.api.file.FileTreeElement as its parameter. If includes are not provided, then all files in this container will be included. If includes are provided, then a file must match at least one of the include patterns or specs to be included.

#### Return

this

#### Since

0.9

#### Parameters

includeSpec

the spec to add

#### See also

PatternFilterable

Pattern Format