public final class BuildPropertiesFileHelper extends Object
| Constructor and Description |
|---|
BuildPropertiesFileHelper(org.apache.maven.plugin.logging.Log log,
File propertiesOutputFile,
FilePathNormalizer filePathNormalizer)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Properties |
getProjectProperties(org.apache.maven.project.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.
|
public BuildPropertiesFileHelper(org.apache.maven.plugin.logging.Log log,
File propertiesOutputFile,
FilePathNormalizer filePathNormalizer)
log - the logger to use.propertiesOutputFile - the file to write to.filePathNormalizer - the normalizer to be applied to file name value
to remove the base dir prefix.public File writePropertiesFile(Properties buildMetaDataProperties) throws org.apache.maven.plugin.MojoExecutionException
buildMetaDataProperties - the properties to write.org.apache.maven.plugin.MojoExecutionException - on any problem encountered while writing the
properties.public void readBuildPropertiesFile(Properties buildMetaDataProperties) throws org.apache.maven.plugin.MojoExecutionException
constructor propertiesOutputFile.buildMetaDataProperties - the properties instance to append the read
properties to.org.apache.maven.plugin.MojoExecutionException - if the properties cannot be read.public Properties getProjectProperties(org.apache.maven.project.MavenProject project)
null returns a new empty
properties instance that is associated with the project.project - the project whose properties are requested.Copyright © 2006-2014. All Rights Reserved.