T
- The domain object for the configuration file.GenerateSolutionFileTask
, PropertiesGeneratorTask
, PropertyListGeneratorTask
, 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.internal.MutableActionSet<T> |
afterConfigured |
|
protected org.gradle.internal.MutableActionSet<T> |
beforeConfigured |
|
protected T |
domainObject |
|
protected org.gradle.plugins.ide.internal.generator.generator.Generator<T> |
generator |
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
GeneratorTask() |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
getIncremental() |
Whether this generator task can be treated as an incremental task or not
|
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.
|
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
conventionMapping, conventionMapping, getConventionMapping
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
protected final org.gradle.internal.MutableActionSet<T> beforeConfigured
protected final org.gradle.internal.MutableActionSet<T> afterConfigured
protected org.gradle.plugins.ide.internal.generator.generator.Generator<T> generator
protected T domainObject
@Internal @Incubating protected boolean getIncremental()
@Inject protected org.gradle.internal.reflect.Instantiator getInstantiator()
@Internal("Covered by inputFileIfExists") public java.io.File getInputFile()
@Nullable @Optional @PathSensitive(NONE) @InputFile protected java.io.File getInputFileIfExists()
public void setInputFile(@Nullable 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.