de.smartics.maven.plugin.buildmetadata.data
Class ScmMetaDataProvider

Package class diagram package ScmMetaDataProvider
java.lang.Object
  extended by de.smartics.maven.plugin.buildmetadata.data.AbstractMetaDataProvider
      extended by de.smartics.maven.plugin.buildmetadata.data.ScmMetaDataProvider
All Implemented Interfaces:
MetaDataProvider

public class ScmMetaDataProvider
     
     
extends AbstractMetaDataProvider

Extracts information from the Maven project, session, and runtime information.

Author:
Robert Reiner

Field Summary
 
Fields inherited from class de.smartics.maven.plugin.buildmetadata.data.AbstractMetaDataProvider
project, runtime, scmInfo, session
 
Constructor Summary
ScmMetaDataProvider(MavenProject project, ScmInfo scmInfo)
          Constructor.
 
Method Summary
protected  String getConnection()
          Delegates call to Scm.getConnection().
 void provideBuildMetaData(Properties buildMetaDataProperties)
          Provides the SCM build information to the property sets if the URL to the SCM is provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScmMetaDataProvider

public ScmMetaDataProvider(MavenProject project,
                           ScmInfo scmInfo)
Constructor.

Parameters:
project - the Maven project.
scmInfo - the value for scmInfo.
See Also:
AbstractMetaDataProvider.AbstractMetaDataProvider()
Method Detail

provideBuildMetaData

public final void provideBuildMetaData(Properties buildMetaDataProperties)
Provides the SCM build information to the property sets if the URL to the SCM is provided.

Parameters:
buildMetaDataProperties - the build meta data properties.

getConnection

protected final String getConnection()
                              throws IllegalStateException
Delegates call to Scm.getConnection().

Returns:
the result of the call to Scm.getConnection().
Throws:
IllegalStateException - when there is insufficient information to return the SCM connection string.
See Also:
Scm.getConnection()


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.