public abstract class AbstractByteBuddyTask
extends org.gradle.api.DefaultTask
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractByteBuddyTask.GradleBuildLogger
A
BuildLogger implementation for a Gradle Logger. |
protected static class |
AbstractByteBuddyTask.TransformationLogger
A
Plugin.Engine.Listener that logs several relevant events during the build. |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractByteBuddyTask()
Creates a new abstract Byte Buddy task.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Iterable<java.io.File> |
classPath()
Returns the class path to supply to the plugin engine.
|
protected void |
doApply(net.bytebuddy.build.Plugin.Engine.Source source,
net.bytebuddy.build.Plugin.Engine.Target target)
Applies the transformation from a source to a target.
|
net.bytebuddy.build.EntryPoint |
getEntryPoint()
Returns the entry point to use.
|
java.lang.String |
getSuffix()
Returns the suffix to use for rebased methods or the empty string if a random suffix should be used.
|
int |
getThreads()
Returns the number of threads to use for transforming or
0 if the transformation should be applied in the main thread. |
java.util.List<Transformation> |
getTransformations()
Returns the transformations to apply.
|
boolean |
isExtendedParsing()
Returns
true if extended parsing should be used. |
boolean |
isFailFast()
Returns
true if a warning should be issued for an empty type set. |
boolean |
isFailOnLiveInitializer()
Returns
true if the transformation should fail if a live initializer is used. |
boolean |
isWarnOnEmptyTypeSet()
Returns
true if a warning should be issued for an empty type set. |
void |
setEntryPoint(net.bytebuddy.build.EntryPoint entryPoint)
Sets the entry point to use.
|
void |
setExtendedParsing(boolean extendedParsing)
Determines if extended parsing should be used.
|
void |
setFailFast(boolean failFast)
Determines if a warning should be issued for an empty type set.
|
void |
setFailOnLiveInitializer(boolean failOnLiveInitializer)
Determines if the transformation should fail if a live initializer is used.
|
void |
setSuffix(java.lang.String suffix)
Sets the suffix to use for rebased methods or the empty string if a random suffix should be used.
|
void |
setThreads(int threads)
Sets the number of threads to use for transforming or
0 if the transformation should be applied in the main thread. |
void |
setWarnOnEmptyTypeSet(boolean warnOnEmptyTypeSet)
Returns
true if a warning should be issued for an empty type set. |
protected abstract java.io.File |
source()
Returns the source file or folder.
|
protected abstract java.io.File |
target()
Returns the target file or folder.
|
void |
transformation(groovy.lang.Closure<Transformation> closure)
Adds an additional transformation.
|
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, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, requiresResource, requiresResource, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringprotected AbstractByteBuddyTask()
public java.util.List<Transformation> getTransformations()
public void transformation(groovy.lang.Closure<Transformation> closure)
closure - The closure to configure the transformation.@Input public net.bytebuddy.build.EntryPoint getEntryPoint()
public void setEntryPoint(net.bytebuddy.build.EntryPoint entryPoint)
entryPoint - The entry point to use.@Input public java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
suffix - The suffix to use for rebased methods or the empty string if a random suffix should be used.@Internal public boolean isFailOnLiveInitializer()
true if the transformation should fail if a live initializer is used.true if the transformation should fail if a live initializer is used.public void setFailOnLiveInitializer(boolean failOnLiveInitializer)
failOnLiveInitializer - true if the transformation should fail if a live initializer is used.@Internal public boolean isWarnOnEmptyTypeSet()
true if a warning should be issued for an empty type set.true if a warning should be issued for an empty type set.public void setWarnOnEmptyTypeSet(boolean warnOnEmptyTypeSet)
true if a warning should be issued for an empty type set.warnOnEmptyTypeSet - true if a warning should be issued for an empty type set.@Internal public boolean isFailFast()
true if a warning should be issued for an empty type set.true if a warning should be issued for an empty type set.public void setFailFast(boolean failFast)
failFast - true if a warning should be issued for an empty type set.@Input public boolean isExtendedParsing()
true if extended parsing should be used.true if extended parsing should be used.public void setExtendedParsing(boolean extendedParsing)
extendedParsing - true if extended parsing should be used.@Internal public int getThreads()
0 if the transformation should be applied in the main thread.0 if the transformation should be applied in the main thread.public void setThreads(int threads)
0 if the transformation should be applied in the main thread.threads - The number of threads to use for transforming or 0 if the transformation should be applied in the main thread.protected abstract java.io.File source()
protected abstract java.io.File target()
protected abstract java.lang.Iterable<java.io.File> classPath()
protected void doApply(net.bytebuddy.build.Plugin.Engine.Source source,
net.bytebuddy.build.Plugin.Engine.Target target)
throws java.io.IOException
source - The plugin engine's source.target - The plugin engine's target.java.io.IOException - If an I/O exception occurs.