api / org.gradle.api.plugins.antlr / AntlrSourceVirtualDirectory

AntlrSourceVirtualDirectory

interface AntlrSourceVirtualDirectory

Contract for a Gradle "convention object" that acts as a handler for what I call a virtual directory mapping, injecting a virtual directory named 'antlr' into the project's various org.gradle.api.tasks.SourceSet.

Properties

NAME

static val NAME: String

Functions

antlr

abstract fun antlr(configureClosure: Closure<Any>): AntlrSourceVirtualDirectory

Configures the Antlr source for this set. The given closure is used to configure the org.gradle.api.file.SourceDirectorySet (see #getAntlr) which contains the Antlr source.

abstract fun antlr(configureAction: Action<in SourceDirectorySet>): AntlrSourceVirtualDirectory

Configures the Antlr source for this set. The given action is used to configure the org.gradle.api.file.SourceDirectorySet (see #getAntlr) which contains the Antlr source.

getAntlr

abstract fun getAntlr(): SourceDirectorySet

All Antlr source for this source set.