Package net.bytebuddy.build.maven
Class ByteBuddyMojo.ForTestTypes
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.bytebuddy.build.maven.ByteBuddyMojo
net.bytebuddy.build.maven.ByteBuddyMojo.ForTestTypes
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Enclosing class:
ByteBuddyMojo
@Mojo(name="transform-test",
defaultPhase=PROCESS_TEST_CLASSES,
threadSafe=true,
requiresDependencyResolution=TEST)
public static class ByteBuddyMojo.ForTestTypes
extends ByteBuddyMojo
A Byte Buddy plugin that transforms a project's test class files.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.build.maven.ByteBuddyMojo
ByteBuddyMojo.Coordinate, ByteBuddyMojo.ForProductionTypes, ByteBuddyMojo.ForTestTypes, ByteBuddyMojo.MavenBuildLogger, ByteBuddyMojo.StalenessFilter, ByteBuddyMojo.TransformationLogger, ByteBuddyMojo.Transformer -
Field Summary
Fields inherited from class net.bytebuddy.build.maven.ByteBuddyMojo
classPathDiscovery, context, discovery, execution, extendedParsing, failFast, failOnLiveInitializer, incremental, initialization, project, repositorySystem, repositorySystemSession, skip, staleMilliseconds, suffix, threads, transformations, warnOnEmptyTypeSet, warnOnMissingOutputDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.bytebuddy.build.maven.ByteBuddyMojo
executeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
ForTestTypes
public ForTestTypes()
-
-
Method Details
-
getOutputDirectory
Description copied from class:ByteBuddyMojoReturns the output directory to search for class files.- Specified by:
getOutputDirectoryin classByteBuddyMojo- Returns:
- The output directory to search for class files.
-
getSourceDirectory
Description copied from class:ByteBuddyMojoReturns the source directory that determines the class files to process.- Specified by:
getSourceDirectoryin classByteBuddyMojo- Returns:
- The source directory that serves as an input for the transformation.
-
getClassPathElements
Description copied from class:ByteBuddyMojoReturns the class path elements of the relevant output directory.- Specified by:
getClassPathElementsin classByteBuddyMojo- Returns:
- The class path elements of the relevant output directory.
- Throws:
org.apache.maven.plugin.MojoFailureException- If the class path cannot be resolved.
-