de.smartics.maven.plugin.buildmetadata.scm
Interface RevisionNumberFetcher

Package class diagram package RevisionNumberFetcher
All Known Implementing Classes:
MavenScmRevisionNumberFetcher

public interface RevisionNumberFetcher

Provides means to fetch the revision number.

The implementation requires to provide access to the SCM.

Author:
Robert Reiner

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.
 

Method Detail

fetchLatestRevisionNumber

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

Returns:
the latest revision number from the SCM, null if none can be found.
Throws:
ScmException - if the revision number cannot be fetched.

containsModifications

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

Parameters:
fileSet - the file set to check.
Returns:
the status of the files.
Throws:
ScmException - on any problem checking the up-to-date status.


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