public final class MavenScmRevisionNumberFetcher extends AbstractBuildMojo implements RevisionNumberFetcher
addToFilters, createManifestFile, createPropertiesReport, createXmlReport, manifestFile, manifestSection, project, properties, propertiesOutputFile, providers, remoteVersion, runtime, session, settingsDecrypter, writeProtectFiles, xmlOutputFile| Constructor and Description |
|---|
MavenScmRevisionNumberFetcher(org.apache.maven.scm.manager.ScmManager scmManager,
ScmConnectionInfo scmConnectionInfo,
ScmAccessInfo scmAccessInfo)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
LocallyModifiedInfo |
containsModifications(org.apache.maven.scm.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.
|
execute, getProject, isCreatePropertiesReport, provideBuildMetaData, setCreatePropertiesReport, setProject, setPropertiesOutputFile, setSession, updateMavenEnvironmentpublic MavenScmRevisionNumberFetcher(org.apache.maven.scm.manager.ScmManager scmManager,
ScmConnectionInfo scmConnectionInfo,
ScmAccessInfo scmAccessInfo)
scmManager - the SCM manager to access to SCM system.scmConnectionInfo - the information to connect to the SCM system.scmAccessInfo - the value for scmAccessInfo.public Revision fetchLatestRevisionNumber() throws ScmException
fetchLatestRevisionNumber in interface RevisionNumberFetchernull if none
can be found.ScmException - if the revision number cannot be fetched.public LocallyModifiedInfo containsModifications(org.apache.maven.scm.ScmFileSet fileSet) throws ScmException
containsModifications in interface RevisionNumberFetcherfileSet - the file set to check.ScmException - on any problem checking the up-to-date status.Copyright © 2006-2014. All Rights Reserved.