public final class RevisionHelper extends AbstractBuildMojo
addToFilters, createManifestFile, createPropertiesReport, createXmlReport, manifestFile, manifestSection, project, properties, propertiesOutputFile, providers, remoteVersion, runtime, session, settingsDecrypter, writeProtectFiles, xmlOutputFile| Constructor and Description |
|---|
RevisionHelper(org.apache.maven.scm.manager.ScmManager scmManager,
ScmConnectionInfo scmConnectionInfo,
ScmAccessInfo scmAccessInfo,
String buildDatePattern)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
provideScmBuildInfo(Properties buildMetaDataProperties,
ScmControl scmControl)
Fetches the revision information and adds it to the property sets.
|
execute, getProject, isCreatePropertiesReport, provideBuildMetaData, setCreatePropertiesReport, setProject, setPropertiesOutputFile, setSession, updateMavenEnvironmentpublic RevisionHelper(org.apache.maven.scm.manager.ScmManager scmManager,
ScmConnectionInfo scmConnectionInfo,
ScmAccessInfo scmAccessInfo,
String buildDatePattern)
scmManager - the manager instance to access the SCM system.scmConnectionInfo - the information to connect to the SCM.scmAccessInfo - the information to query the SCM.buildDatePattern - the date pattern to use to format revision dates.public void provideScmBuildInfo(Properties buildMetaDataProperties, ScmControl scmControl) throws ScmException
buildMetaDataProperties - the build meta data properties.scmControl - the properties to control the gathering of SCM info.ScmException - if the creation of the SCM information failed.Copyright © 2006-2014. All Rights Reserved.