public final class ScmAccessInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RETRY_COUNT
The number of retries to fetch the change log if the first attempt failed
to return a non empty set.
|
| Constructor and Description |
|---|
ScmAccessInfo()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.scm.ScmFileSet |
createFileSet()
Creates the file set on the root directory of the checked out project.
|
org.apache.maven.scm.command.changelog.ChangeLogScmResult |
fetchChangeLog(org.apache.maven.scm.repository.ScmRepository repository,
org.apache.maven.scm.provider.ScmProvider provider)
Returns the result of the change log query.
|
String |
getDateFormat()
Returns the format of the dates understood by the SCM system.
|
int |
getQueryRangeInDays()
Returns the range of the query in days to fetch change log entries from the
SCM.
|
File |
getRootDirectory()
Returns the root directory that contains the files under SCM control.
|
boolean |
isFailIndicated()
Checks whether the SCM configuration calls for a failure due to changed
files.
|
boolean |
isFailOnLocalModifications()
Returns the flag to fail if local modifications have been found.
|
boolean |
isIgnoreDotFilesInBaseDir()
Returns the flag to ignore files and directories starting with a dot for
checking modified files.
|
void |
setDateFormat(String dateFormat)
Sets the format of the dates understood by the SCM system.
|
void |
setFailOnLocalModifications(boolean failOnLocalModifications)
Sets the flag to fail if local modifications have been found.
|
void |
setIgnoreDotFilesInBaseDir(boolean ignoreDotFilesInBaseDir)
Sets the flag to ignore files and directories starting with a dot for
checking modified files.
|
void |
setQueryRangeInDays(int queryRangeInDays)
Sets the range of the query in days to fetch change log entries from the
SCM.
|
void |
setRootDirectory(File rootDirectory)
Sets the root directory that contains the files under SCM control.
|
String |
toString()
Delegates call to
StringBuilder.toString(). |
public static final int DEFAULT_RETRY_COUNT
The value of this constant is 5.
public String getDateFormat()
public void setDateFormat(String dateFormat)
dateFormat - the format of the dates understood by the SCM system.public File getRootDirectory()
public void setRootDirectory(File rootDirectory)
rootDirectory - the root directory that contains the files under SCM
control.public int getQueryRangeInDays()
public void setQueryRangeInDays(int queryRangeInDays)
queryRangeInDays - the range of the query in days to fetch change log
entries from the SCM.public boolean isFailOnLocalModifications()
true if the build should fail if there are modifications
(any files not in-sync with the remote repository), false if
the fact is only to be noted in the build properties.public void setFailOnLocalModifications(boolean failOnLocalModifications)
true if the build should fail if there are modifications (any
files not in-sync with the remote repository), false if the
fact is only to be noted in the build properties.failOnLocalModifications - the flag to fail if local modifications
have been found.public boolean isIgnoreDotFilesInBaseDir()
true, dot files are ignored, if it is set to
false, dot files are respected.public void setIgnoreDotFilesInBaseDir(boolean ignoreDotFilesInBaseDir)
true, dot files are ignored, if it is set to
false, dot files are respected.ignoreDotFilesInBaseDir - the flag to ignore files and directories
starting with a dot for checking modified files.public org.apache.maven.scm.command.changelog.ChangeLogScmResult fetchChangeLog(org.apache.maven.scm.repository.ScmRepository repository,
org.apache.maven.scm.provider.ScmProvider provider)
throws ScmException
repository - the repository to fetch the change log information from.provider - the provider to use to access the repository.null if
none have been found.ScmException - if the change log cannot be fetched.protected org.apache.maven.scm.ScmFileSet createFileSet()
public boolean isFailIndicated()
true if a fail is indicated (i.e. there are locally
modified files that are to be considered for a check),
false if there are none.public String toString()
StringBuilder.toString().toString in class ObjectStringBuilder.toString().StringBuilder.toString()Copyright © 2006-2014. All Rights Reserved.