de.smartics.maven.plugin.buildmetadata.data
Class ScmMetaDataProvider
java.lang.Object
de.smartics.maven.plugin.buildmetadata.data.AbstractMetaDataProvider
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScmMetaDataProvider
public ScmMetaDataProvider(MavenProject project,
ScmInfo scmInfo)
-
Constructor.
-
Parameters:
-
project
- the Maven project.
-
scmInfo
- the value for scmInfo.
-
See Also:
-
AbstractMetaDataProvider.AbstractMetaDataProvider()
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.