|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.plugin.buildmetadata.io.BuildPropertiesFileHelper
public final class BuildPropertiesFileHelper
Helper to handle the build meta data properties file.
Constructor Summary | |
---|---|
BuildPropertiesFileHelper(Log log, File propertiesOutputFile) Default constructor. |
Method Summary | |
---|---|
Properties |
getProjectProperties(MavenProject project) Fetches the project properties and if null returns a new empty properties instance that is associated with the project. |
void |
readBuildPropertiesFile(Properties buildMetaDataProperties) Reads the build properties file from stream. |
File |
writePropertiesFile(Properties buildMetaDataProperties) Writes the build meta data properties to the target file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildPropertiesFileHelper(Log log, File propertiesOutputFile)
log
- the logger to use.
propertiesOutputFile
- the file to write to.
Method Detail |
---|
public File writePropertiesFile(Properties buildMetaDataProperties) throws MojoExecutionException
buildMetaDataProperties
- the properties to write.
MojoExecutionException
- on any problem encountered while writing the properties.
public void readBuildPropertiesFile(Properties buildMetaDataProperties) throws MojoExecutionException
constructor
propertiesOutputFile
.
buildMetaDataProperties
- the properties instance to append the read properties to.
MojoExecutionException
- if the properties cannot be read.
public Properties getProjectProperties(MavenProject project)
null
returns a new empty properties instance that is associated with the project.
project
- the project whose properties are requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |