@CacheableTask
public class GenerateDataTemplateTask
extends org.gradle.api.DefaultTask
apply plugin: 'li-pegasus2'The plugin will scan the source set's pegasus directory, e.g. "src/main/pegasus" for data schema (.pdsc) files.
| Constructor and Description |
|---|
GenerateDataTemplateTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate() |
org.gradle.api.file.FileCollection |
getCodegenClasspath()
Classpath of the java process that generates data template.
|
java.io.File |
getDestinationDir()
Directory to write the generated data template source files.
|
java.io.File |
getInputDir()
Directory containing the data schema files.
|
org.gradle.api.file.FileCollection |
getResolverPath()
The resolver path.
|
void |
setCodegenClasspath(org.gradle.api.file.FileCollection codegenClasspath) |
void |
setDestinationDir(java.io.File destinationDir) |
void |
setInputDir(java.io.File inputDir) |
void |
setResolverPath(org.gradle.api.file.FileCollection resolverPath) |
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, 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@InputDirectory @SkipWhenEmpty @PathSensitive(value=RELATIVE) public java.io.File getInputDir()
public void setInputDir(java.io.File inputDir)
@Classpath public org.gradle.api.file.FileCollection getResolverPath()
public void setResolverPath(org.gradle.api.file.FileCollection resolverPath)
@Classpath public org.gradle.api.file.FileCollection getCodegenClasspath()
public void setCodegenClasspath(org.gradle.api.file.FileCollection codegenClasspath)
@OutputDirectory public java.io.File getDestinationDir()
public void setDestinationDir(java.io.File destinationDir)
public void generate()