public class GenerateTask extends SourceTask
Task.Namer| Modifier and Type | Field and Description |
|---|---|
static String |
OPTION_CLEAN |
static String |
OPTION_GENDIR |
static String |
OPTION_LOGLEVEL |
static String |
OPTION_MODELPATH |
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
GenerateTask(WorkerExecutor executor,
org.gradle.internal.classpath.CachedClasspathTransformer transformer,
ObjectFactory objects)
Creates a new task for a generator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generate()
Executes the generator with the configured arguments.
|
ConfigurableFileCollection |
getClasspath() |
DirectoryProperty |
getGenDir() |
ConfigurableFileCollection |
getModelpath() |
Property<String> |
getModule() |
MapProperty<String,Object> |
getOptions() |
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, getSource, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceconventionMapping, conventionMapping, getConventionMappingcompareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects, setLoggerMessageRewriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConventionpublic static final String OPTION_GENDIR
public static final String OPTION_MODELPATH
public static final String OPTION_CLEAN
public static final String OPTION_LOGLEVEL
@Inject public GenerateTask(WorkerExecutor executor, org.gradle.internal.classpath.CachedClasspathTransformer transformer, ObjectFactory objects)
executor - Gradle worker executortransformer - Gradle cached classpath transformerobjects - Gradle object factory@InputFiles public ConfigurableFileCollection getClasspath()
@Input public MapProperty<String,Object> getOptions()
@OutputDirectory public DirectoryProperty getGenDir()
@InputFiles public ConfigurableFileCollection getModelpath()
protected void generate()