Package org.openrewrite.maven
Class AbstractRewriteMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.openrewrite.maven.AbstractRewriteMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
RewriteDiffMojo,RewriteDiscoverMojo,RewriteFixMojo,RewritePublishMojo,RewriteWarnMojo
public abstract class AbstractRewriteMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractRewriteMojo.ChangesContainer
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>activeRecipesprotected org.apache.maven.project.MavenProjectproject
-
Constructor Summary
Constructors Constructor Description AbstractRewriteMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.openrewrite.Environmentenvironment()protected AbstractRewriteMojo.ChangesContainerlistChanges()protected List<Path>listJavaSources(String sourceDirectory)protected voidlogVisitorsThatMadeChanges(org.openrewrite.Change change)-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
environment
protected org.openrewrite.Environment environment() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
listChanges
protected AbstractRewriteMojo.ChangesContainer listChanges() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
listJavaSources
protected List<Path> listJavaSources(String sourceDirectory) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
logVisitorsThatMadeChanges
protected void logVisitorsThatMadeChanges(org.openrewrite.Change change)
-
-