public class ByteBuddySimpleTask extends AbstractByteBuddyTask
AbstractByteBuddyTask.ByteBuddySkippingUrlClassLoader, AbstractByteBuddyTask.TransformationLoggerTask.NamerTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
ByteBuddySimpleTask()
Creates a new simple Byte Buddy task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
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. |
Iterable<File> |
getClassPath()
Returns the class path to supply to the plugin engine.
|
Iterable<File> |
getDiscoverySet()
Returns the source set to resolve plugin names from or
null if no such source set is used. |
File |
getSource()
Returns the task's source folder.
|
File |
getTarget()
Returns the task's target folder.
|
void |
setClassPath(Iterable<File> classPath)
Sets the class path to supply to the plugin engine.
|
void |
setDiscoverySet(Iterable<File> discoverySet)
Defines the source set to resolve plugin names from or
null if no such source set is used. |
void |
setSource(File source)
Sets the task's source folder.
|
void |
setTarget(File target)
Sets the task's target folder.
|
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@Inject public ByteBuddySimpleTask()
@InputDirectory @PathSensitive(value=RELATIVE) public File getSource()
public void setSource(File source)
source - The task's source folder.@OutputDirectory public File getTarget()
public void setTarget(File target)
target - The task's target folder.@InputFiles @CompileClasspath public Iterable<File> getClassPath()
public void setClassPath(Iterable<File> classPath)
classPath - The class path to supply to the plugin engine.@MaybeNull @InputFiles @Optional public Iterable<File> getDiscoverySet()
null if no such source set is used.null if no such source set is used.public void setDiscoverySet(@MaybeNull Iterable<File> 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()
throws IOException
IOException - If an I/O exception is thrown.