@CacheableTask
public class GenerateAvroSchemaTask
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 |
|---|
GenerateAvroSchemaTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate() |
org.gradle.api.file.FileCollection |
getCodegenClasspath() |
java.io.File |
getDestinationDir()
Directory to write the generated Avro schema files.
|
java.io.File |
getInputDir()
Directory containing the data schema files.
|
java.lang.String |
getOverrideNamespace()
Value of project property "generator.avro.namespace.override"
|
org.gradle.api.file.FileCollection |
getResolverPath()
The resolver path.
|
java.lang.String |
getTranslateOptionalDefault()
Value of project property "generator.avro.optional.default"
|
java.lang.String |
getTypeRefPropertiesExcludeList()
Value of project property "generator.avro.typeref.properties.exclude"
|
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, toStringpublic void generate()
@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)
@Input @Optional public java.lang.String getTranslateOptionalDefault()
@Input @Optional public java.lang.String getOverrideNamespace()
@Input @Optional public java.lang.String getTypeRefPropertiesExcludeList()