Package org.codehaus.mojo.templating
Class FilterSourcesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.templating.AbstractFilterSourcesMojo
org.codehaus.mojo.templating.FilterSourcesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="filter-sources",
defaultPhase=GENERATE_SOURCES,
threadSafe=true)
public class FilterSourcesMojo
extends AbstractFilterSourcesMojo
This mojo helps adding a filtered source folder in one go. This is typically useful if you want to use properties
coming from the POM inside parts of your source code that requires real constants, like annotations for example.
-
Field Summary
Fields inherited from class org.codehaus.mojo.templating.AbstractFilterSourcesMojo
delimiters, escapeString, mavenResourcesFiltering, overwrite, skipPoms, useDefaultDelimiters
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addSourceFolderToProject
(org.apache.maven.project.MavenProject mavenProject) protected File
protected File
Methods inherited from class org.codehaus.mojo.templating.AbstractFilterSourcesMojo
countCopiedFiles, execute
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
FilterSourcesMojo
public FilterSourcesMojo()
-
-
Method Details
-
getSourceDirectory
- Specified by:
getSourceDirectory
in classAbstractFilterSourcesMojo
- Returns:
- The location of the source directory.
-
getOutputDirectory
- Specified by:
getOutputDirectory
in classAbstractFilterSourcesMojo
- Returns:
- The location of the output directory.
-
addSourceFolderToProject
protected void addSourceFolderToProject(org.apache.maven.project.MavenProject mavenProject) - Specified by:
addSourceFolderToProject
in classAbstractFilterSourcesMojo
- Parameters:
mavenProject
-MavenProject
-