public abstract class ByteBuddyTask extends AbstractByteBuddyTask
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ByteBuddyTask.IncrementalSource
A source for an incrementally changed source folder.
|
static class |
ByteBuddyTask.WithIncrementalClassPath
A Byte Buddy task with an incremental class path.
|
AbstractByteBuddyTask.ByteBuddySkippingUrlClassLoader, AbstractByteBuddyTask.GradleBuildLogger, AbstractByteBuddyTask.TransformationLoggerTask.NamerTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
ByteBuddyTask()
Creates a new Byte Buddy task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(InputChanges inputChanges)
Applies this task.
|
protected Iterable<File> |
classPath()
Returns the class path to supply to the plugin engine.
|
protected Iterable<File> |
discoverySet()
Returns the discovery class path or
null if not specified. |
abstract ConfigurableFileCollection |
getClassPath()
Returns the class path to supply to the plugin engine.
|
FileCollection |
getDiscoverySet()
Returns the source set to resolve plugin names from or
null if no such source set is used. |
IncrementalResolver |
getIncrementalResolver()
Returns the incremental builder to apply or
null if no incremental build should be applied. |
abstract DirectoryProperty |
getSource()
Returns the source directory.
|
abstract DirectoryProperty |
getTarget()
Returns the target directory.
|
void |
setDiscoverySet(FileCollection discoverySet)
Defines the source set to resolve plugin names from or
null if no such source set is used. |
void |
setIncrementalResolver(IncrementalResolver incrementalResolver)
Sets the incremental builder to apply or
null if no incremental build should be applied. |
protected File |
source()
Returns the source file or folder.
|
protected File |
target()
Returns the target file or folder.
|
deleteRecursively, deleteRecursively, doApply, getClassFileVersion, getDiscovery, getEntryPoint, getSuffix, getThreads, getTransformations, isExtendedParsing, isFailFast, isFailOnLiveInitializer, isWarnOnEmptyTypeSet, setClassFileVersion, setDiscovery, setEntryPoint, setExtendedParsing, setFailFast, setFailOnLiveInitializer, setSuffix, setThreads, setWarnOnEmptyTypeSet, transformation, transformationcompareTo, 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, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNotTrackState, getConvention, notCompatibleWithConfigurationCache@Incremental @InputFiles @PathSensitive(value=RELATIVE) public abstract DirectoryProperty getSource()
@OutputDirectory public abstract DirectoryProperty getTarget()
@InputFiles @CompileClasspath public abstract ConfigurableFileCollection getClassPath()
@Internal @MaybeNull public IncrementalResolver getIncrementalResolver()
null if no incremental build should be applied.null if no incremental build should be applied.public void setIncrementalResolver(@MaybeNull IncrementalResolver incrementalResolver)
null if no incremental build should be applied.incrementalResolver - The incremental builder to apply or null if no incremental build should be applied.@MaybeNull @InputFiles @Optional public FileCollection getDiscoverySet()
null if no such source set is used.null if no such source set is used.public void setDiscoverySet(@MaybeNull FileCollection discoverySet)
null if no such source set is used.discoverySet - The source set to resolve plugin names from or null if no such source set is used.protected File source()
AbstractByteBuddyTasksource in class AbstractByteBuddyTaskprotected File target()
AbstractByteBuddyTasktarget in class AbstractByteBuddyTaskprotected Iterable<File> classPath()
AbstractByteBuddyTaskclassPath in class AbstractByteBuddyTask@MaybeNull protected Iterable<File> discoverySet()
AbstractByteBuddyTasknull if not specified.discoverySet in class AbstractByteBuddyTasknull if not specified.public void apply(InputChanges inputChanges) throws IOException
inputChanges - The input changes to consider.IOException - If an I/O exception occurs.