|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.plugins.ide.api.GeneratorTask
public class GeneratorTask extends ConventionTask
A GeneratorTask generates a configuration file based on a domain object of type T. When executed the task:
- The domain object for the configuration file.Field Summary | |
---|---|
protected ActionBroadcast |
afterConfigured
|
protected ActionBroadcast |
beforeConfigured
|
protected Object |
domainObject
|
protected Generator |
generator
|
Constructor Summary | |
GeneratorTask()
|
Method Summary | |
---|---|
File
|
getInputFile()
The input file to load the initial configuration from. |
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. |
Field Detail |
---|
protected final ActionBroadcast afterConfigured
protected final ActionBroadcast beforeConfigured
protected Object domainObject
protected Generator generator
Constructor Detail |
---|
public GeneratorTask()
Method Detail |
---|
public File getInputFile()
@OutputFile public File getOutputFile()
public void setInputFile(File inputFile)
inputFile
- The input file. Use null to use the output file.
public void setOutputFile(File outputFile)
outputFile
- The output file.
Gradle API 1.12