T
- The domain object for the configuration file.GenerateSolutionFileTask
, PropertiesGeneratorTask
, XmlGeneratorTask
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 | 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 | Description |
---|---|
GeneratorTask() |
Modifier and Type | Method | Description |
---|---|---|
java.io.File |
getInputFile() |
The input file to load the initial configuration from.
|
protected java.io.File |
getInputFileIfExists() |
|
protected org.gradle.internal.reflect.Instantiator |
getInstantiator() |
|
java.io.File |
getOutputFile() |
The output file to write the final configuration to.
|
void |
setInputFile(java.io.File inputFile) |
Sets the input file to load the initial configuration from.
|
void |
setOutputFile(java.io.File outputFile) |
Sets the output file to write the final configuration to.
|
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, 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()
@Internal("Covered by inputFileIfExists") public java.io.File getInputFile()
@Optional @InputFile protected java.io.File getInputFileIfExists()
public void setInputFile(java.io.File inputFile)
inputFile
- The input file. Use null to use the output file.@OutputFile public java.io.File getOutputFile()
public void setOutputFile(java.io.File outputFile)
outputFile
- The output file.