|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.plugin.buildmetadata.scm.maven.ScmAccessInfo
public final class ScmAccessInfo
Provides access information to retrieve revision information from the SCM.
Field Summary | |
---|---|
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 Summary | |
---|---|
ScmAccessInfo() Default constructor. |
Method Summary | |
---|---|
protected ScmFileSet |
createFileSet() Creates the file set on the root directory of the checked out project. |
ChangeLogScmResult |
fetchChangeLog(ScmRepository repository, 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() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_RETRY_COUNT
The value of this constant is 5.
5
Constructor Detail |
---|
public ScmAccessInfo()
Method Detail |
---|
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 ChangeLogScmResult fetchChangeLog(ScmRepository repository, 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 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
Object
StringBuilder.toString()
.
StringBuilder.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |