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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BaseProblemGeneratorMojo() -
Method Summary
Modifier and Type Method Description protected abstract voidclean(File outputFile)voidexecute()protected abstract FilegetInputDirectory()protected abstract FilegetOutputDirectory()protected abstract StringgetOutputFile()protected Collection<File>getProblemClassSourceFiles(File dir)Recursively search a directory and its sub-directories for .class files.protected abstract voidprintEntry(PrintWriter writer, File source, boolean last)protected voidprintFooter(PrintWriter writer)protected voidprintHeader(PrintWriter writer)
-
Constructor Details
-
BaseProblemGeneratorMojo
public BaseProblemGeneratorMojo()
-
-
Method Details
-
getInputDirectory
-
getOutputDirectory
-
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
-
printEntry
-
printFooter
-
getProblemClassSourceFiles
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
-