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.ForProductionTypes, ByteBuddyMojo.ForTestTypes
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
testClasspathElements
The test class path.protected java.lang.String
testOutputDirectory
The current build's test output directory.-
Fields inherited from class net.bytebuddy.build.maven.ByteBuddyMojo
artifactId, failFast, failOnLiveInitializer, groupId, initialization, packaging, project, remoteRepositories, repositorySystem, repositorySystemSession, skip, suffix, transformations, version, warnOnMissingOutputDirectory
-
-
Constructor Summary
Constructors Constructor Description ForTestTypes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>
getClassPathElements()
Returns the class path elements of the relevant output directory.protected java.lang.String
getOutputDirectory()
Returns the output directory to search for class files.-
Methods inherited from class net.bytebuddy.build.maven.ByteBuddyMojo
execute
-
-
-
-
Field Detail
-
testOutputDirectory
@Parameter(defaultValue="${project.build.testOutputDirectory}", required=true, readonly=true) protected java.lang.String testOutputDirectory
The current build's test output directory.
-
testClasspathElements
@Parameter(defaultValue="${project.testClasspathElements}", required=true, readonly=true) protected java.util.List<java.lang.String> testClasspathElements
The test class path.
-
-
Method Detail
-
getOutputDirectory
protected java.lang.String getOutputDirectory()
Description copied from class:ByteBuddyMojo
Returns the output directory to search for class files.- Specified by:
getOutputDirectory
in classByteBuddyMojo
- Returns:
- The output directory to search for class files.
-
getClassPathElements
protected java.util.List<java.lang.String> getClassPathElements()
Description copied from class:ByteBuddyMojo
Returns the class path elements of the relevant output directory.- Specified by:
getClassPathElements
in classByteBuddyMojo
- Returns:
- The class path elements of the relevant output directory.
-
-