Package org.structs4java
Class AbstractCompileMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.structs4java.AbstractCompileMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CompileMojo,TestCompileMojo
public abstract class AbstractCompileMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.google.common.base.Predicate<String>FILE_EXISTSprotected MavenLog4JConfiguratorlog4jConfigurator
-
Constructor Summary
Constructors Constructor Description AbstractCompileMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddDependencies(Set<String> classPath, List<org.apache.maven.artifact.Artifact> dependencies)protected voidcompile(String classPath, List<String> sourcePaths, String structSourceRoot, String outputPath)voidexecute()protected StructsBatchCompilergetBatchCompiler()protected abstract List<String>getClassPath()protected abstract List<String>getCompileSourceRoots()protected abstract FilegetOutputDirectory()protected org.apache.maven.project.MavenProjectgetProject()protected abstract FilegetStructsDirectory()
-
-
-
Field Detail
-
log4jConfigurator
@Inject protected MavenLog4JConfigurator log4jConfigurator
-
FILE_EXISTS
protected static final com.google.common.base.Predicate<String> FILE_EXISTS
-
-
Method Detail
-
getProject
protected org.apache.maven.project.MavenProject getProject()
-
getStructsDirectory
protected abstract File getStructsDirectory()
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getOutputDirectory
protected abstract File getOutputDirectory()
-
addDependencies
protected void addDependencies(Set<String> classPath, List<org.apache.maven.artifact.Artifact> dependencies)
-
compile
protected void compile(String classPath, List<String> sourcePaths, String structSourceRoot, String outputPath) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getBatchCompiler
protected StructsBatchCompiler getBatchCompiler()
-
-