Class ModifyEE9ToEE8
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.jetty.toolchain.modifysources.ModifyEE9ToEE8
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="modify-sources-ee9-to-ee8", defaultPhase=GENERATE_SOURCES, threadSafe=true) public class ModifyEE9ToEE8 extends org.apache.maven.plugin.AbstractMojoModify sources from EE9 project to be compiled with EE8 dependencies
-
-
Field Summary
Fields Modifier and Type Field Description private booleanaddToCompileSourceRootprivate booleanmoveDirectoryStructuremove generated sources org/eclipse/jetty/ee9 to org/eclipse/jetty/ee8protected java.util.Set<java.lang.String>notTranslateStartsWiththis is a list of String to not translate if starting withprivate java.io.FileoutputDirectoryLocation of the modified sources.protected org.apache.maven.project.MavenProjectprojectMaven Project.private booleanskipprivate java.io.FilesourceProjectLocationLocation of the project to convert.private booleantestSourcesprivate static java.lang.ThreadLocal<java.lang.Boolean>TRANSLATE
-
Constructor Summary
Constructors Constructor Description ModifyEE9ToEE8()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidchangeEE9NameToEE8(com.github.javaparser.ast.nodeTypes.NodeWithName n)private static voidchangeEE9TypeToEE8(com.github.javaparser.ast.nodeTypes.NodeWithType n)static java.lang.StringchangeEE9TypeToEE8(java.lang.String currentType)voidexecute()private java.lang.StringreplaceClassName(java.lang.String previousClassName)protected voidsetMoveDirectoryStructure(boolean moveDirectoryStructure)protected voidsetSourceProjectLocation(java.io.File sourceProjectLocation)private static booleanstartsWith(java.lang.String str, java.util.Collection<java.lang.String> startList)
-
-
-
Field Detail
-
sourceProjectLocation
@Parameter(property="sourceProjectLocation", required=true) private java.io.File sourceProjectLocationLocation of the project to convert.
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/ee8", property="outputLocation", required=true) private java.io.File outputDirectoryLocation of the modified sources.
-
skip
@Parameter(property="jetty.modifysources.EE9toEE8.skip") private boolean skip
-
moveDirectoryStructure
@Parameter(property="jetty.modifysources.EE9toEE8.moveDirectoryStructure") private boolean moveDirectoryStructure
move generated sources org/eclipse/jetty/ee9 to org/eclipse/jetty/ee8
-
testSources
@Parameter(property="jetty.modifysources.testSources") private boolean testSources
-
addToCompileSourceRoot
@Parameter(property="jetty.modifysources.addToCompileSourceRoot") private boolean addToCompileSourceRoot
-
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject projectMaven Project.
-
notTranslateStartsWith
@Parameter protected java.util.Set<java.lang.String> notTranslateStartsWith
this is a list of String to not translate if starting with
-
TRANSLATE
private static final java.lang.ThreadLocal<java.lang.Boolean> TRANSLATE
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
replaceClassName
private java.lang.String replaceClassName(java.lang.String previousClassName)
-
changeEE9NameToEE8
private static void changeEE9NameToEE8(com.github.javaparser.ast.nodeTypes.NodeWithName n)
-
changeEE9TypeToEE8
private static void changeEE9TypeToEE8(com.github.javaparser.ast.nodeTypes.NodeWithType n)
-
changeEE9TypeToEE8
public static java.lang.String changeEE9TypeToEE8(java.lang.String currentType)
- Parameters:
currentType-- Returns:
- will return
nullif there is nothing to change
-
startsWith
private static boolean startsWith(java.lang.String str, java.util.Collection<java.lang.String> startList)
-
setSourceProjectLocation
protected void setSourceProjectLocation(java.io.File sourceProjectLocation)
-
setMoveDirectoryStructure
protected void setMoveDirectoryStructure(boolean moveDirectoryStructure)
-
-