|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.repository.AbstractRepository
com.atlassian.bamboo.repository.cvsimpl.CVSRepository
public class CVSRepository
This class provides a CVS implemention of the Repository
interface.
Field Summary | |
---|---|
static String |
BUILD_MODULE_BRANCH
|
static String |
BUILD_MODULE_TRUNK
|
static String |
CVS_BRANCH
|
static String |
CVS_MODULE
|
static String |
CVS_PASSWORD
|
static String |
CVS_QUIET_PERIOD
|
static String |
CVS_ROOT
|
static String |
CVS_VERSION_TYPE
|
static String |
KEY
|
static String |
NAME
|
Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository |
---|
BUILD_TRIGGER_IP, WEB_REPO_MODULE_NAME, WEB_REPO_URL |
Fields inherited from interface com.atlassian.bamboo.repository.Repository |
---|
REPOSIORTY_TYPE, UNKNOWN_HOST |
Constructor Summary | |
---|---|
CVSRepository()
|
Method Summary | |
---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
|
int |
compareTo(Object obj)
|
boolean |
equals(Object o)
|
void |
getAllSourceCode(Build build)
Clean and re-get all the build source code from the repository. |
String |
getBranchName()
|
Collection |
getChangesSinceLastBuild(Build build,
Date lastBuildStartTime)
Obtain the number of changes that have been made to the build since the build was last executed. |
String |
getCvsRoot()
|
String |
getEncryptedPassword()
|
String |
getHost()
What's the repostory server host |
String |
getKey()
|
String |
getModule()
|
String |
getName()
|
String |
getPassword()
|
int |
getQuietPeriod()
|
File |
getSourceCodeDirectory(Build build)
CVS checks out the source into the a subdirectory (named after the build) in the working directory |
String |
getUrl()
|
String |
getWebRepositoryUrl()
What's the repository's web url |
String |
getWebRepositoryUrlForDiff(CommitFile file)
|
String |
getWebRepositoryUrlForFile(CommitFile file)
Return a link to the given file on a viewcvs web server. |
String |
getWebRepositoryUrlForRevision(CommitFile file)
|
String |
getWebRepositoryUrlRepoName()
What's the repository's web url repository |
int |
hashCode()
|
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same or not and sets the referencesDifferentRepository flag accordingly |
void |
populateFromConfig(HierarchicalConfiguration config)
Update the current object with data in the FieldValueItemHolder |
void |
setBranchName(String branchName)
|
void |
setCvsRoot(String cvsRoot)
|
void |
setEncryptedPassword(String encryptedPassword)
|
void |
setModule(String moduleName)
|
void |
setPassword(String password)
|
void |
setQuietPeriod(int i)
|
void |
setQuietPeriod(String quietPeriod)
Defines the quiet period for this build (in seconds) |
void |
setWebRepositoryUrl(String url)
Where should we link to to show build file changes? |
void |
setWebRepositoryUrlRepoName(String repoName)
This is used to identify the repository on multi-repository configurations. |
HierarchicalConfiguration |
toConfiguration()
Generate a FieldValueItemHolder from the current state of the object |
ErrorCollection |
validate()
Ensure we have the been initialised with the mandatory settings This is called from the build form. |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
|
Methods inherited from class com.atlassian.bamboo.repository.AbstractRepository |
---|
addPasswordToCvsRoot, createStringFromList, getLabel, getTriggerIpAddress, getWorkingDirectory, hasWebBasedRepositoryAccess, isProcessingRepositoryRequest, referencesDifferentRepository, setLabel, setProcessingRepositoryRequest, setReferencesDifferentRepository, setTriggerIpAddress, setWorkingDir, updateAectIfRepositoryHasChanged |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
public static final String KEY
public static final String CVS_VERSION_TYPE
public static final String BUILD_MODULE_TRUNK
public static final String BUILD_MODULE_BRANCH
public static final String CVS_ROOT
public static final String CVS_PASSWORD
public static final String CVS_QUIET_PERIOD
public static final String CVS_MODULE
public static final String CVS_BRANCH
Constructor Detail |
---|
public CVSRepository()
Method Detail |
---|
public String getKey()
public String getName()
public String getUrl()
public Collection getChangesSinceLastBuild(Build build, Date lastBuildStartTime) throws RepositoryException
build
- The build we're checkinglastBuildStartTime
- The last time the build was built.
ChangeLogEntry
objects.
RepositoryException
- Something went wrongpublic void getAllSourceCode(Build build) throws RepositoryException
build
-
RepositoryException
- Failed to clean the codepublic ErrorCollection validate()
public ErrorCollection validate(BuildConfiguration buildConfiguration)
public void addDefaultValues(BuildConfiguration buildConfiguration)
addDefaultValues
in interface Repository
addDefaultValues
in class AbstractRepository
public String getWebRepositoryUrl()
Repository
public String getWebRepositoryUrlRepoName()
Repository
public String getWebRepositoryUrlForFile(CommitFile file)
file
- The file that has been modified
public String getWebRepositoryUrlForDiff(CommitFile file)
public String getWebRepositoryUrlForRevision(CommitFile file)
public String getHost()
Repository
public boolean isRepositoryDifferent(Repository repository)
Repository
public void setWebRepositoryUrl(String url)
Repository
url
- The url of the repositories web interfacepublic void setWebRepositoryUrlRepoName(String repoName)
Repository
repoName
- The name of the repository we are viewingpublic File getSourceCodeDirectory(Build build)
getSourceCodeDirectory
in interface Repository
getSourceCodeDirectory
in class AbstractRepository
build
- The build we're checking out
public String getModule()
public void setModule(String moduleName)
public String getBranchName()
public void setBranchName(String branchName)
public String getPassword()
public void setPassword(String password)
public void setQuietPeriod(String quietPeriod)
quietPeriod
- the number of seconds to wait for more checkinspublic void setQuietPeriod(int i)
public int getQuietPeriod()
public String getCvsRoot()
public void setCvsRoot(String cvsRoot)
public String getEncryptedPassword()
public void setEncryptedPassword(String encryptedPassword)
public void populateFromConfig(HierarchicalConfiguration config)
ConvertibleFromConfig
FieldValueItemHolder
public HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
FieldValueItemHolder
from the current state of the object
FieldValueItemHolder
. Never nullpublic int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |