|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.legacy.LegacyAbstractRepository
com.atlassian.bamboo.legacy.LegacyCVSRepository
public class LegacyCVSRepository
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.legacy.LegacyAbstractRepository |
---|
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 | |
---|---|
LegacyCVSRepository()
|
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()
|
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 |
getWebRepositoryUrlForFile(CommitFile file)
Return a link to the given file on a viewcvs web server. |
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 |
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 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 LegacyCVSRepository()
Method Detail |
---|
public String getKey()
public String getName()
public String getUrl()
public 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 LegacyAbstractRepository
public String getWebRepositoryUrl()
Repository
public String getWebRepositoryUrlRepoName()
Repository
public String getWebRepositoryUrlForFile(CommitFile file)
file
- The file that has been modified
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 LegacyAbstractRepository
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 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 |