Package org.jvnet.hk2.generator.maven
Class AbstractInhabitantsGeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.jvnet.hk2.generator.maven.AbstractInhabitantsGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
InhabitantsGeneratorMojo,TestInhabitantsGeneratorMojo
public abstract class AbstractInhabitantsGeneratorMojo extends org.apache.maven.plugin.AbstractMojoAbstract Mojo for inhabitant generator
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCLASSESprivate booleanincludeDateprivate java.lang.Stringlocatorprotected org.apache.maven.project.MavenProjectprojectThe maven project.private java.lang.StringsupportedProjectTypesprivate java.io.FiletargetDirectoryprivate booleanverboseprivate static java.lang.StringWAR_PACKAGINGprivate static java.lang.StringWEB_INF
-
Constructor Summary
Constructors Constructor Description AbstractInhabitantsGeneratorMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecute()This method will compile the inhabitants file based on the classes just compiledprivate java.lang.StringgetBuildClasspath()protected abstract booleangetNoSwap()protected abstract java.io.FilegetOutputDirectory()protected booleanisWar()
-
-
-
Field Detail
-
WAR_PACKAGING
private static final java.lang.String WAR_PACKAGING
- See Also:
- Constant Field Values
-
WEB_INF
private static final java.lang.String WEB_INF
- See Also:
- Constant Field Values
-
CLASSES
private static final java.lang.String CLASSES
- See Also:
- Constant Field Values
-
targetDirectory
@Parameter(property="project.build.directory") private java.io.File targetDirectory
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project.
-
verbose
@Parameter private boolean verbose
-
includeDate
@Parameter(defaultValue="true") private boolean includeDate
-
locator
@Parameter private java.lang.String locator
-
supportedProjectTypes
@Parameter(property="supportedProjectTypes", defaultValue="jar,ejb,war") private java.lang.String supportedProjectTypes
-
-
Method Detail
-
getNoSwap
protected abstract boolean getNoSwap()
-
getOutputDirectory
protected abstract java.io.File getOutputDirectory()
-
isWar
protected boolean isWar()
-
execute
public void execute() throws org.apache.maven.plugin.MojoFailureExceptionThis method will compile the inhabitants file based on the classes just compiled- Throws:
org.apache.maven.plugin.MojoFailureException
-
getBuildClasspath
private java.lang.String getBuildClasspath()
-
-