Package gg.jte.maven
Class GeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- gg.jte.maven.GeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate", defaultPhase=GENERATE_SOURCES) public class GeneratorMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description StringcontentTypeString[]htmlAttributesString[]htmlTagsorg.apache.maven.project.MavenProjectprojectStringsourceDirectoryThe directory where template files are located.StringtargetDirectoryDestination directory to store generated templates.booleantrimControlStructures
-
Constructor Summary
Constructors Constructor Description GeneratorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
project
@Parameter(defaultValue="${project}") public org.apache.maven.project.MavenProject project
-
sourceDirectory
@Parameter public String sourceDirectory
The directory where template files are located.
-
targetDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/jte") public String targetDirectoryDestination directory to store generated templates. Defaults to 'target/generated-sources/jte'.
-
contentType
@Parameter(readonly=true, required=true) public String contentType
-
trimControlStructures
@Parameter(readonly=true) public boolean trimControlStructures
-
htmlTags
@Parameter(readonly=true) public String[] htmlTags
-
htmlAttributes
@Parameter(readonly=true) public String[] htmlAttributes
-
-