Package org.codehaus.mojo.flatten
Class AbstractFlattenMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.flatten.AbstractFlattenMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CleanMojo,FlattenMojo
public abstract class AbstractFlattenMojo extends org.apache.maven.plugin.AbstractMojoThis is the abstract base class forMOJOsthat realize the different goals of this plugin.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringflattenedPomFilenameThe filename of the generated flattened POM file.private java.io.FileoutputDirectoryThe directory where the generated flattened POM file will be written to.private booleanskipIftruethe plugin will be skipped.
-
Constructor Summary
Constructors Constructor Description AbstractFlattenMojo()The constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.io.FilegetFlattenedPomFile()java.lang.StringgetFlattenedPomFilename()java.io.FilegetOutputDirectory()protected booleanshouldSkip()protected abstract booleanshouldSkipGoal()-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
outputDirectory
@Parameter(defaultValue="${project.basedir}") private java.io.File outputDirectoryThe directory where the generated flattened POM file will be written to.
-
flattenedPomFilename
@Parameter(property="flattenedPomFilename", defaultValue=".flattened-pom.xml") private java.lang.String flattenedPomFilenameThe filename of the generated flattened POM file.
-
skip
@Parameter(property="flatten.skip", defaultValue="false") private boolean skipIftruethe plugin will be skipped.- Since:
- 1.6.0
-
-
Method Detail
-
getFlattenedPomFilename
public java.lang.String getFlattenedPomFilename()
- Returns:
- the filename of the generated flattened POM file.
-
getOutputDirectory
public java.io.File getOutputDirectory()
- Returns:
- the directory where the generated flattened POM file will be written to.
-
getFlattenedPomFile
protected java.io.File getFlattenedPomFile()
- Returns:
- a
Fileinstance pointing to the flattened POM.
-
shouldSkip
protected boolean shouldSkip()
-
shouldSkipGoal
protected abstract boolean shouldSkipGoal()
-
-