de.smartics.maven.plugin.buildmetadata.common
Class RevisionHelper

Package class diagram package RevisionHelper
java.lang.Object
  extended by de.smartics.maven.plugin.buildmetadata.common.RevisionHelper

public final class RevisionHelper
     
     
extends Object

Helper to access the revision information.

Author:
Robert Reiner

Constructor Summary
RevisionHelper(ScmManager scmManager, ScmConnectionInfo scmConnectionInfo, ScmAccessInfo scmAccessInfo, String buildDatePattern)
          Default constructor.
 
Method Summary
 void provideScmBuildInfo(Properties buildMetaDataProperties, ScmControl scmControl)
          Fetches the revision information and adds it to the property sets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.