de.smartics.maven.plugin.buildmetadata.scm.maven
Class MavenScmRevisionNumberFetcher

Package class diagram package MavenScmRevisionNumberFetcher
java.lang.Object
  extended by de.smartics.maven.plugin.buildmetadata.scm.maven.MavenScmRevisionNumberFetcher
All Implemented Interfaces:
RevisionNumberFetcher

public final class MavenScmRevisionNumberFetcher
     
     
extends Object
implements RevisionNumberFetcher

Implementation on the Maven SCM implementation to fetch the latest revision number.

Author:
Robert Reiner

Constructor Summary
MavenScmRevisionNumberFetcher(ScmManager scmManager, ScmConnectionInfo scmConnectionInfo, ScmAccessInfo scmAccessInfo)
          Default constructor.
 
Method Summary
 LocallyModifiedInfo containsModifications(ScmFileSet fileSet)
          Checks if the local source files are in-sync with the repository or not.
 Revision fetchLatestRevisionNumber()
          Returns the latest revision number from the SCM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenScmRevisionNumberFetcher

public MavenScmRevisionNumberFetcher(ScmManager scmManager,
                                     ScmConnectionInfo scmConnectionInfo,
                                     ScmAccessInfo scmAccessInfo)
Default constructor.

Parameters:
scmManager - the SCM manager to access to SCM system.
scmConnectionInfo - the information to connect to the SCM system.
scmAccessInfo - the value for scmAccessInfo.
Method Detail

fetchLatestRevisionNumber

public Revision fetchLatestRevisionNumber()
                                   throws ScmException
Returns the latest revision number from the SCM.

Specified by:
fetchLatestRevisionNumber in interface RevisionNumberFetcher
Returns:
the latest revision number from the SCM, null if none can be found.
Throws:
ScmException - if the revision number cannot be fetched.
See Also:
RevisionNumberFetcher.fetchLatestRevisionNumber()

containsModifications

public LocallyModifiedInfo containsModifications(ScmFileSet fileSet)
                                          throws ScmException
Checks if the local source files are in-sync with the repository or not.

Specified by:
containsModifications in interface RevisionNumberFetcher
Parameters:
fileSet - the file set to check.
Returns:
the status of the files.
Throws:
ScmException - on any problem checking the up-to-date status.
See Also:
RevisionNumberFetcher.containsModifications(org.apache.maven.scm.ScmFileSet)


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