API Documentation: LanguageSourceSet

A set of sources for a programming language.

Properties

Property Description

asFileTree

Returns this source set as a filtered file tree.

filter

The filter used to select the source from the source directories. These filter patterns are applied after the include and exclude patterns of the specified paths. Generally, the filter patterns are used to restrict the contents to certain types of files, eg *.cpp.

name

The name that identify this source set.

sourceDirectories

The source directories that make up this set, represented as a FileCollection. Does not filter source directories that do not exist.

Methods

Method Description

#dev.nokee.language.base.LanguageSourceSet:from-java.lang.Object-[from](paths)

Adds a set of source paths to this source set. The given paths are evaluated as per org.gradle.api.Project#files(Object…​).

filter(closure)

Configures the filter patterns using the specified configuration closure.

filter(action)

Configures the filter patterns using the specified configuration action.

#dev.nokee.language.base.LanguageSourceSet:convention-java.lang.Object-[convention](path)

Configures a set of source paths to use as a convention of this source set. The given paths are evaluated as per org.gradle.api.Project#files(Object…​).

Property Details

FileTree asFileTree (read-only)

Returns this source set as a filtered file tree.

PatternFilterable filter (read-only)

The filter used to select the source from the source directories. These filter patterns are applied after the include and exclude patterns of the specified paths. Generally, the filter patterns are used to restrict the contents to certain types of files, eg *.cpp.

String name (read-only)

The name that identify this source set.

FileCollection sourceDirectories (read-only)

The source directories that make up this set, represented as a FileCollection. Does not filter source directories that do not exist.

The return value of this method also maintains dependency information.

The returned collection is live and reflects changes to this source directory set.

Method Details

[[dev.nokee.language.base.LanguageSourceSet:from-java.lang.Object[]-]] === LanguageSourceSet from(Object…​ paths)

Adds a set of source paths to this source set. The given paths are evaluated as per org.gradle.api.Project#files(Object…​).

LanguageSourceSet filter(Closure<Void> closure)

Configures the filter patterns using the specified configuration closure.

LanguageSourceSet filter(Action<? super PatternFilterable> action)

Configures the filter patterns using the specified configuration action.

[[dev.nokee.language.base.LanguageSourceSet:convention-java.lang.Object[]-]] === LanguageSourceSet convention(Object…​ path)

Configures a set of source paths to use as a convention of this source set. The given paths are evaluated as per org.gradle.api.Project#files(Object…​).