api / org.gradle.api.plugins.antlr / AntlrTask / setSource

setSource

open fun setSource(source: FileTree): Unit

Overrides SourceTask.setSource

Sets the source for this task. Delegates to #setSource(Object). If the source is of type SourceDirectorySet, then the relative path of each source grammar files is used to determine the relative output path of the generated source If the source is not of type SourceDirectorySet, then the generated source files end up flattened in the specified output directory.

Parameters

source - The source.

Since
4.0

open fun setSource(source: Any): Unit

Overrides SourceTask.setSource

Sets the source for this task. Delegates to SourceTask#setSource(Object). If the source is of type SourceDirectorySet, then the relative path of each source grammar files is used to determine the relative output path of the generated source If the source is not of type SourceDirectorySet, then the generated source files end up flattened in the specified output directory.

Parameters

source - The source.