public abstract class AbstractTentackleMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
charset
The encode used to read and write files.
|
protected List<org.apache.maven.shared.model.fileset.FileSet> |
filesets
The list of file sets.
If set the source directory is ignored. |
protected org.apache.maven.project.MavenProject |
mavenProject
The Maven Project.
|
protected List<String> |
resourceDirs
List of resource dirs.
|
protected String |
verbosity
The verbosity.
One of "default", "info" or "debug". |
protected org.wurbelizer.misc.Verbosity |
verbosityLevel
mapped verbosity level.
|
| Constructor and Description |
|---|
AbstractTentackleMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
determineEncoding()
Determines the encode charset.
|
protected void |
determineVerbosity()
sets the verbosity.
|
protected void |
findResourceDirs()
Finds all resource directories.
|
protected String |
getCanonicalPath(File dir)
Gets the canonical path of diven directory.
|
protected String |
getPathRelativeToBasedir(String path)
Gets the path relative to the basedir.
Parent dirs of the basedir will also be tried. |
protected String |
getResourceDirName(String dirName)
Checks if given directory resides in resources.
|
protected void |
validate()
Checks the configuration.
|
getLog, getPluginContext, setLog, setPluginContext@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject mavenProject
@Parameter protected List<org.apache.maven.shared.model.fileset.FileSet> filesets
@Parameter(defaultValue="${tentackle.verbosity}")
protected String verbosity
-X).@Parameter(defaultValue="${project.build.sourceEncoding}")
protected String charset
protected org.wurbelizer.misc.Verbosity verbosityLevel
protected void determineEncoding()
protected void determineVerbosity()
protected String getPathRelativeToBasedir(String path)
path - the absolute pathprotected void findResourceDirs()
protected String getResourceDirName(String dirName)
dirName - the directory nameprotected String getCanonicalPath(File dir) throws org.apache.maven.plugin.MojoExecutionException
dir - the directoryorg.apache.maven.plugin.MojoExecutionException - if failedprotected void validate()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if validation failedTentackle - a domain driven enterprise framework