public class EngineFactory
extends java.lang.Object
| Constructor and Description |
|---|
EngineFactory()
Constructor.
|
EngineFactory(org.gradle.api.Project project)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.velocity.app.VelocityEngine |
apply(org.gradle.api.file.FileCollection inputFiles)
Factory method - creates a Velocity engine for the parameter input files.
|
java.lang.String |
getInputs(org.gradle.api.file.FileCollection inputFiles)
Converts the parameter file collection to a comma-separated list of
absolute paths.
|
void |
setProperty(org.apache.velocity.app.VelocityEngine engine,
java.lang.String name,
java.lang.Object value)
Sets a property on the parameter engine.
|
public EngineFactory()
public EngineFactory(org.gradle.api.Project project)
project - The Gradle project the engine factory is forpublic org.apache.velocity.app.VelocityEngine apply(org.gradle.api.file.FileCollection inputFiles)
inputFiles - The root directory of the templates to instantiatepublic void setProperty(org.apache.velocity.app.VelocityEngine engine,
java.lang.String name,
java.lang.Object value)
engine - The engine to set the property onname - The property namevalue - The property valuepublic java.lang.String getInputs(org.gradle.api.file.FileCollection inputFiles)
inputFiles - The input files as a file collection