Class BaseProblemGeneratorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.royale.compiler.tools.problems.BaseProblemGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
ProblemEnumGeneratorMojo, ProblemResourceBundleGeneratorMojo

public abstract class BaseProblemGeneratorMojo
extends org.apache.maven.plugin.AbstractMojo
  • Constructor Details

  • Method Details

    • getInputDirectory

      protected abstract File getInputDirectory()
    • getOutputDirectory

      protected abstract File getOutputDirectory()
    • getOutputFile

      protected abstract String getOutputFile()
    • clean

      protected abstract void clean​(File outputFile) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • printHeader

      protected void printHeader​(PrintWriter writer)
    • printEntry

      protected abstract void printEntry​(PrintWriter writer, File source, boolean last)
    • printFooter

      protected void printFooter​(PrintWriter writer)
    • getProblemClassSourceFiles

      protected Collection<File> getProblemClassSourceFiles​(File dir)
      Recursively search a directory and its sub-directories for .class files. Use the file name to determine what equivalent class name should be available to the current classloader.
      Parameters:
      dir - - the directory to search
      Returns:
      list of source files found