AndroidSourceDirectorySet

An AndroidSourceDirectorySet represents a lit of directory input for an Android project.

Properties

PropertyDescription
filter

The filter used to select the source from the source directories.

name

A concise name for the source directory (typically used to identify it in a collection).

sourceFiles

The list of source files as a FileTree

srcDirs

The resolved directories.

Methods

MethodDescription
srcDir(srcDir)

Adds the given source directory to this set.

srcDirs(srcDirs)

Adds the given source directories to this set.

Script blocks

No script blocks

Property details

PatternFilterable filter (read-only)

The filter used to select the source from the source directories.

String name (read-only)

A concise name for the source directory (typically used to identify it in a collection).

FileTree sourceFiles (read-only)

The list of source files as a FileTree

Set<File> srcDirs

The resolved directories.

Setter can be called with a collection of Objects, just like Gradle's project.file(...).

Method details

Adds the given source directory to this set.

AndroidSourceDirectorySet srcDirs(Object... srcDirs)

Adds the given source directories to this set.