de.smartics.maven.plugin.buildmetadata.common
Class RevisionHelper
java.lang.Object
de.smartics.maven.plugin.buildmetadata.common.RevisionHelper
-
public final class RevisionHelper
-
extends
Object
Helper to access the revision information.
-
Author:
-
Robert Reiner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RevisionHelper
public RevisionHelper(ScmManager scmManager,
ScmConnectionInfo scmConnectionInfo,
ScmAccessInfo scmAccessInfo,
String buildDatePattern)
-
Default constructor.
-
Parameters:
-
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.
provideScmBuildInfo
public void provideScmBuildInfo(Properties buildMetaDataProperties,
ScmControl scmControl)
throws ScmException
-
Fetches the revision information and adds it to the property sets.
-
-
Parameters:
-
buildMetaDataProperties
- the build meta data properties.
-
scmControl
- the properties to control the gathering of SCM info.
-
Throws:
-
ScmException
- if the creation of the SCM information failed.
Copyright © 2006-2012
Kronseder & Reiner GmbH - smartics. All Rights Reserved.