Sets up a Velocity engine for instantiating templates.
| Type | Name and description |
|---|---|
org.gradle.api.Project |
projectThe Gradle project the engine will be used for. |
| Constructor and description |
|---|
EngineFactory
()Constructor. |
EngineFactory
(org.gradle.api.Project project)Constructor. |
| Type Params | Return Type | Name 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 paramter 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. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The Gradle project the engine will be used for. Can be null, in which case no logging takes place. The project is not used for anything else.
Constructor. The resulting engine factory will not log anything.
Constructor. The resulting engine factory will log property assignments.
project - The Gradle project the engine factory is forFactory method - creates a Velocity engine for the parameter input files.
inputFiles - The root directory of the templates to instantiateConverts the paramter file collection to a comma-separated list of absolute paths.
inputFiles - The input files as a file collectionSets a property on the parameter engine.
engine - The engine to set the property onname - The property namevalue - The property valueGroovy Documentation