Package org.codehaus.mojo.flatten
Enum ElementHandling
- All Implemented Interfaces:
Serializable
,Comparable<ElementHandling>
This enum contains each available handling for a POM element when flattening.
- Since:
- 1.0.0-beta-4
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTake the element from the effective POM.Take the element from the interpolated POM, but resolve the variables with the properties from the effective POM.
Don't resolve the following variables "project.basedir", "project.baseUri", "project.build.directory", "project.build.outputDirectory", "project.build.sourceDirectory", "project.build.scriptSourceDirectory", "project.build.testSourceDirectory", "project.reporting.outputDirectory"
Interpolate the parent versionFlatten the element.Take the element from the interpolated POM (original POM with variables interpolated).Take the element untouched from the original POM.Remove the element entirely so it will not be present in flattened POM.Take the element from the resolved POM. -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementHandling
Returns the enum constant of this type with the specified name.static ElementHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
flatten
Flatten the element. For most elements this means that they will be removed and are not present in the flattened POM. -
expand
Take the element from the effective POM. -
resolve
Take the element from the resolved POM. -
interpolate
Take the element from the interpolated POM (original POM with variables interpolated). -
extended_interpolate
Take the element from the interpolated POM, but resolve the variables with the properties from the effective POM.
Don't resolve the following variables "project.basedir", "project.baseUri", "project.build.directory", "project.build.outputDirectory", "project.build.sourceDirectory", "project.build.scriptSourceDirectory", "project.build.testSourceDirectory", "project.reporting.outputDirectory"
Interpolate the parent version -
keep
Take the element untouched from the original POM. -
remove
Remove the element entirely so it will not be present in flattened POM.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-