@CacheableTask public abstract class ImageGrinderTask extends DefaultTask
See README.md for usage instructions.
Worker requires that all arguments to its worker runnables (ImageGrinderTask
in this case) be Serializable. There’s no way to serialize our grinder(Action), so we had
to use SerializableRef to sneakily pass our task to the worker.
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageGrinderTask.RenderSvg |
static interface |
ImageGrinderTask.RenderSvgParams |
Task.NamerTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
ImageGrinderTask(WorkerExecutor workerExecutor) |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
getBumpThisNumberWhenTheGrinderChanges() |
abstract DirectoryProperty |
getDstDir() |
abstract FileSystemOperations |
getFs() |
abstract DirectoryProperty |
getSrcDir() |
void |
grinder(Action<Img<?>> grinder) |
void |
performAction() |
void |
setBumpThisNumberWhenTheGrinderChanges(Serializable bumpThisNumberWhenTheGrinderChanges) |
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesService@Inject public ImageGrinderTask(WorkerExecutor workerExecutor)
@PathSensitive(value=RELATIVE) @InputDirectory public abstract DirectoryProperty getSrcDir()
@OutputDirectory public abstract DirectoryProperty getDstDir()
@Inject public abstract FileSystemOperations getFs()
public Serializable getBumpThisNumberWhenTheGrinderChanges()
public void setBumpThisNumberWhenTheGrinderChanges(Serializable bumpThisNumberWhenTheGrinderChanges)