Class AbstractRewriteMojo

    • Field Detail

      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
      • activeRecipes

        @Parameter(property="activeRecipes")
        protected Set<String> activeRecipes
      • activeStyles

        @Parameter(property="activeStyles")
        protected Set<String> activeStyles
    • Constructor Detail

      • AbstractRewriteMojo

        public AbstractRewriteMojo()
    • Method Detail

      • environment

        protected org.openrewrite.config.Environment environment()
                                                          throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • executionContext

        protected org.openrewrite.ExecutionContext executionContext()
      • listener

        protected org.openrewrite.Parser.Listener listener()
      • parseMaven

        protected org.openrewrite.maven.tree.Maven parseMaven​(Path baseDir,
                                                              org.openrewrite.ExecutionContext ctx)
      • getBaseDir

        protected Path getBaseDir()
      • listResults

        protected AbstractRewriteMojo.ResultsContainer listResults()
                                                            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
      • logRecipesThatMadeChanges

        protected void logRecipesThatMadeChanges​(org.openrewrite.Result result)