T
- The domain object for the configuration file.public class GeneratorTask<T>
extends org.gradle.api.internal.ConventionTask
A GeneratorTask
generates a configuration file based on a domain object of type T.
When executed the task:
Task.Namer
Modifier and Type | Field and Description |
---|---|
protected org.gradle.listener.ActionBroadcast<T> |
afterConfigured |
protected org.gradle.listener.ActionBroadcast<T> |
beforeConfigured |
protected T |
domainObject |
protected org.gradle.plugins.ide.internal.generator.generator.Generator<T> |
generator |
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
GeneratorTask() |
Modifier and Type | Method and Description |
---|---|
File |
getInputFile()
The input file to load the initial configuration from.
|
protected org.gradle.internal.reflect.Instantiator |
getInstantiator() |
File |
getOutputFile()
The output file to write the final configuration to.
|
void |
setInputFile(File inputFile)
Sets the input file to load the initial configuration from.
|
void |
setOutputFile(File outputFile)
Sets the output file to write the final configuration to.
|
conventionMapping, conventionMapping, getConventionMapping
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
protected final org.gradle.listener.ActionBroadcast<T> beforeConfigured
protected final org.gradle.listener.ActionBroadcast<T> afterConfigured
protected org.gradle.plugins.ide.internal.generator.generator.Generator<T> generator
protected T domainObject
@Inject protected org.gradle.internal.reflect.Instantiator getInstantiator()
public File getInputFile()
public void setInputFile(File inputFile)
inputFile
- The input file. Use null to use the output file.@OutputFile public File getOutputFile()
public void setOutputFile(File outputFile)
outputFile
- The output file.