Package org.codehaus.mojo.properties
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 Summary
Fields Modifier and Type Field Description private java.io.File
outputFile
private org.apache.maven.project.MavenProject
project
-
Constructor Summary
Constructors Constructor Description AbstractWritePropertiesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getOutputFile()
org.apache.maven.project.MavenProject
getProject()
private void
storeWithoutTimestamp(java.util.Properties properties, java.io.File outputFile, java.lang.String comments)
protected void
validateOutputFile()
protected void
writeProperties(java.util.Properties properties, java.io.File file)
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
writeProperties
protected void writeProperties(java.util.Properties properties, java.io.File file) throws org.apache.maven.plugin.MojoExecutionException
- Parameters:
properties
-Properties
file
-File
- Throws:
org.apache.maven.plugin.MojoExecutionException
-MojoExecutionException
-
storeWithoutTimestamp
private void storeWithoutTimestamp(java.util.Properties properties, java.io.File outputFile, java.lang.String comments) throws java.io.IOException
- Throws:
java.io.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 java.io.File getOutputFile()
- Returns:
outputFile
-
-