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- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.FileoutputFileprivate org.apache.maven.project.MavenProjectproject
-
Constructor Summary
Constructors Constructor Description AbstractWritePropertiesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetOutputFile()org.apache.maven.project.MavenProjectgetProject()protected voidvalidateOutputFile()protected voidwriteProperties(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-Propertiesfile-File- 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
-
getOutputFile
public java.io.File getOutputFile()
- Returns:
outputFile
-
-