Package org.basepom.mojo.propertyhelper
Interface FieldContext
- All Known Implementing Classes:
AbstractPropertyHelperMojo,GetMojo,IncMojo
public interface FieldContext
All accessible values from the Maven build system for a Field.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FieldContextReturns a fixed instance for testing.Returns the base dir for this maven build execution.Returns theInterpolatorFactorythat can interpolate "late resolution" properties.Returns a map with all known macros.org.apache.maven.project.MavenProjectReturns a reference to theMavenProject.Return the maven project properties.org.apache.maven.settings.SettingsReturns the current mavenSettingsobjectReturns a reference to theTransformerRegistry.
-
Method Details
-
forTesting
Returns a fixed instance for testing. Do not use outside test code. -
getMacros
Returns a map with all known macros. Key value is the macro hint as given by the plexus component annotation.- Returns:
- A map with all known macros.
-
getProjectProperties
Return the maven project properties.- Returns:
- A properties object for the project properties.
-
getProject
org.apache.maven.project.MavenProject getProject()Returns a reference to theMavenProject.- Returns:
- A
MavenProjectobject
-
getSettings
org.apache.maven.settings.Settings getSettings()Returns the current mavenSettingsobject- Returns:
- A
Settingsobject
-
getBasedir
Returns the base dir for this maven build execution.- Returns:
- A
Fileobject.
-
getInterpolatorFactory
Returns theInterpolatorFactorythat can interpolate "late resolution" properties.- Returns:
- An
InterpolatorFactoryreference.
-
getTransformerRegistry
Returns a reference to theTransformerRegistry.- Returns:
- A
TransformerRegistryobject.
-