@Incubating open class TwirlCompile : SourceTask
Task for compiling Twirl templates into Scala code.
TwirlCompile()
Task for compiling Twirl templates into Scala code. |
open fun addUserTemplateFormat(extension: String, templateType: String, vararg imports: String): Unit
Adds a custom template format. |
|
open fun getAdditionalImports(): MutableList<String>
Returns the list of additional imports to add to the generated Scala code. |
|
open fun getDefaultImports(): TwirlImports
Returns the default imports that will be used when compiling templates. |
|
open fun getDependencyNotation(): Any |
|
open fun getForkOptions(): BaseForkOptions
fork options for the twirl compiler. |
|
open fun getOutputDirectory(): File
Returns the directory to generate the parser source files into. |
|
open fun getToolChain(): PlayToolChain
Returns the tool chain that will be used to compile the twirl source. |
|
open fun getUserTemplateFormats(): MutableList<TwirlTemplateFormat>
Returns the custom template formats configured for this task. |
|
open fun setAdditionalImports(additionalImports: MutableList<String>): Unit
Sets the additional imports to add to all generated Scala code. |
|
open fun setDefaultImports(defaultImports: TwirlImports): Unit
Sets the default imports to be used when compiling templates. |
|
open fun setOutputDirectory(outputDirectory: File): Unit
Specifies the directory to generate the parser source files into. |
|
open fun setPlatform(platform: PlayPlatform): Unit |
|
open fun setToolChain(toolChain: PlayToolChain): Unit
Sets the tool chain that will be used to compile the twirl source. |
|
open fun setUserTemplateFormats(userTemplateFormats: MutableList<TwirlTemplateFormat>): Unit
Sets the custom template formats for this task. |
open fun exclude(vararg excludes: String): SourceTask open fun exclude(excludes: MutableIterable<String>): SourceTask open fun exclude(excludeSpec: Spec<FileTreeElement>): SourceTask open fun exclude(excludeSpec: Closure<Any>): SourceTask
{@inheritDoc} |
|
open fun getExcludes(): MutableSet<String>
{@inheritDoc} |
|
open fun getIncludes(): MutableSet<String>
{@inheritDoc} |
|
open fun getSource(): FileTree
Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist. |
|
open fun include(vararg includes: String): SourceTask open fun include(includes: MutableIterable<String>): SourceTask open fun include(includeSpec: Spec<FileTreeElement>): SourceTask open fun include(includeSpec: Closure<Any>): SourceTask
{@inheritDoc} |
|
open fun setExcludes(excludes: MutableIterable<String>): SourceTask
{@inheritDoc} |
|
open fun setIncludes(includes: MutableIterable<String>): SourceTask
{@inheritDoc} |
|
open fun setSource(source: FileTree): Unit
Sets the source for this task. open fun setSource(source: Any): Unit
Sets the source for this task. The given source object is evaluated as per |
|
open fun source(vararg sources: Any): SourceTask
Adds some source to this task. The given source objects will be evaluated as per |