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.AbstractMojo
Modify sources from EE9 project to be compiled with EE8 dependencies
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanmove generated sources org/eclipse/jetty/ee9 to org/eclipse/jetty/ee8this is a list of String to not translate if starting withprivate FileLocation of the modified sources.protected org.apache.maven.project.MavenProjectMaven Project.private booleanprivate FileLocation of the project to convert.private booleanprivate static final ThreadLocal<Boolean> Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidchangeEE9NameToEE8(com.github.javaparser.ast.nodeTypes.NodeWithName n) private static voidchangeEE9TypeToEE8(com.github.javaparser.ast.nodeTypes.NodeWithType n) static StringchangeEE9TypeToEE8(String currentType) voidexecute()private StringreplaceClassName(String previousClassName) protected voidsetMoveDirectoryStructure(boolean moveDirectoryStructure) protected voidsetSourceProjectLocation(File sourceProjectLocation) private static booleanstartsWith(String str, Collection<String> startList) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
sourceProjectLocation
Location of the project to convert. -
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/ee8", property="outputLocation", required=true) private 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 moveDirectoryStructuremove 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
-
TRANSLATE
-
-
Constructor Details
-
ModifyEE9ToEE8
public ModifyEE9ToEE8()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
replaceClassName
-
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
-
startsWith
-
setSourceProjectLocation
-
setMoveDirectoryStructure
protected void setMoveDirectoryStructure(boolean moveDirectoryStructure)
-