Class AbstractWritePropertiesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.properties.AbstractPropertiesMojo
org.codehaus.mojo.properties.AbstractWritePropertiesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
WriteActiveProfileProperties, WriteProjectProperties

public abstract class AbstractWritePropertiesMojo extends AbstractPropertiesMojo
  • Field Details

    • project

      @Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject project
    • outputFile

      @Parameter(required=true, property="properties.outputFile") private File outputFile
      Output file for storing properties.
      Since:
      1.0.0
  • Constructor Details

    • AbstractWritePropertiesMojo

      protected AbstractWritePropertiesMojo(List<PropertiesManager> propertiesManagers)
  • Method Details

    • writeProperties

      protected void writeProperties(Properties properties) throws org.apache.maven.plugin.MojoExecutionException
      Parameters:
      properties - Properties
      Throws:
      org.apache.maven.plugin.MojoExecutionException - MojoExecutionException
    • validateOutputFile

      protected void validateOutputFile() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException - MojoExecutionException
    • getProject

      public org.apache.maven.project.MavenProject getProject()
      Returns:
      MavenProject
    • setProject

      void setProject(org.apache.maven.project.MavenProject project)
      Default scope for test access.
      Parameters:
      project - The test project.
    • setOutputFile

      void setOutputFile(File outputFile)
      Default scope for test access.