@CacheableTask
public class GenerateRestModelTask
extends org.gradle.api.DefaultTask
apply plugin: 'li-pegasus2'Optionally, to generate idl for specific packages, add
pegasus.<sourceSet>.idlOptions.addIdlItem(['<packageName>'])
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INCLUDED_SOURCE_TYPES_PROPERTY |
| Constructor and Description |
|---|
GenerateRestModelTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate() |
org.gradle.api.file.FileCollection |
getCodegenClasspath() |
java.io.File |
getIdlDestinationDir() |
PegasusOptions.IdlOptions |
getIdlOptions() |
java.util.Set<java.io.File> |
getInputDirs() |
org.gradle.api.file.FileCollection |
getResolverPath() |
java.io.File |
getSnapshotDestinationDir() |
org.gradle.api.file.FileCollection |
getWatchedCodegenClasspath() |
java.util.Set<java.io.File> |
getWatchedInputDirs() |
void |
setCodegenClasspath(org.gradle.api.file.FileCollection codegenClasspath) |
void |
setIdlDestinationDir(java.io.File idlDestinationDir) |
void |
setIdlOptions(PegasusOptions.IdlOptions idlOptions) |
void |
setInputDirs(java.util.Set<java.io.File> inputDirs) |
void |
setResolverPath(org.gradle.api.file.FileCollection resolverPath) |
void |
setSnapshotDestinationDir(java.io.File snapshotDestinationDir) |
void |
setWatchedCodegenClasspath(org.gradle.api.file.FileCollection watchedCodegenClasspath) |
void |
setWatchedInputDirs(java.util.Set<java.io.File> watchedInputDirs) |
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 static final java.lang.String INCLUDED_SOURCE_TYPES_PROPERTY
public void generate()
@Classpath public org.gradle.api.file.FileCollection getWatchedCodegenClasspath()
public void setWatchedCodegenClasspath(org.gradle.api.file.FileCollection watchedCodegenClasspath)
@InputFiles @SkipWhenEmpty @PathSensitive(value=RELATIVE) public java.util.Set<java.io.File> getWatchedInputDirs()
public void setWatchedInputDirs(java.util.Set<java.io.File> watchedInputDirs)
@Classpath public org.gradle.api.file.FileCollection getResolverPath()
public void setResolverPath(org.gradle.api.file.FileCollection resolverPath)
@OutputDirectory @PathSensitive(value=NAME_ONLY) public java.io.File getIdlDestinationDir()
public void setIdlDestinationDir(java.io.File idlDestinationDir)
@OutputDirectory public java.io.File getSnapshotDestinationDir()
public void setSnapshotDestinationDir(java.io.File snapshotDestinationDir)
@Internal public PegasusOptions.IdlOptions getIdlOptions()
public void setIdlOptions(PegasusOptions.IdlOptions idlOptions)
@Internal public org.gradle.api.file.FileCollection getCodegenClasspath()
public void setCodegenClasspath(org.gradle.api.file.FileCollection codegenClasspath)
@Internal public java.util.Set<java.io.File> getInputDirs()
public void setInputDirs(java.util.Set<java.io.File> inputDirs)