Class AbstractWritePropertiesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
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 org.apache.maven.plugin.AbstractMojo
  • Field Details

    • project

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

      @Parameter(required=true) private File outputFile
  • Constructor Details

    • AbstractWritePropertiesMojo

      public AbstractWritePropertiesMojo()
  • Method Details

    • writeProperties

      protected void writeProperties(Properties properties, File file) throws org.apache.maven.plugin.MojoExecutionException
      Parameters:
      properties - Properties
      file - File
      Throws:
      org.apache.maven.plugin.MojoExecutionException - MojoExecutionException
    • storeWithoutTimestamp

      private void storeWithoutTimestamp(Properties properties, File outputFile, String comments) throws IOException
      Throws:
      IOException
    • 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
    • getOutputFile

      public File getOutputFile()
      Returns:
      outputFile