|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 java.lang.String |
BUILD_MODULE_BRANCH
|
static java.lang.String |
BUILD_MODULE_TRUNK
|
static java.lang.String |
CVS_AUTH_TYPE
|
static java.lang.String |
CVS_BRANCH
|
static java.lang.String |
CVS_KEY_FILE
|
static java.lang.String |
CVS_LAST_UPDATE
|
static java.lang.String |
CVS_MODULE
|
static java.lang.String |
CVS_PASSPHRASE
|
static java.lang.String |
CVS_PASSWORD
|
static java.lang.String |
CVS_QUIET_PERIOD
|
static java.lang.String |
CVS_ROOT
|
static java.lang.String |
CVS_VERSION_TYPE
|
CvsRepositoryManager |
cvsRepositoryManager
|
static java.lang.String |
DATE_FORMAT
|
static org.apache.commons.lang.time.FastDateFormat |
DEFAULT_LOG_DATE_FORMAT
|
static java.lang.String |
KEY
|
static java.lang.String |
NAME
|
Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository |
---|
BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, CLEAN_CHECKOUT_PARAM, repositoryModuleDescriptor, templateRenderer, textProvider, variableSubstitutionBean, WEB_REPO_MODULE_NAME, WEB_REPO_URL |
Fields inherited from interface com.atlassian.bamboo.repository.Repository |
---|
SELECTED_REPOSITORY, UNKNOWN_HOST |
Fields inherited from interface com.atlassian.bamboo.repository.IncludeExcludeAwareRepository |
---|
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX |
Constructor Summary | |
---|---|
CVSRepository()
|
Method Summary | |
---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
Extension point for adding default values to the form for #getEditHtml() |
BuildChanges |
collectChangesSinceLastBuild(java.lang.String planKey,
java.lang.String lastVcsRevisionKey)
Gets the code since the link |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
|
java.util.List<NameValuePair> |
getAuthenticationTypes()
List all authentication types supported by repository. |
java.lang.String |
getAuthType()
|
java.lang.String |
getBranchName()
|
java.lang.String |
getCvsRoot()
|
protected java.lang.String |
getDecryptedPassphrase()
|
java.lang.String |
getEncryptedPassword()
|
java.lang.String |
getHost()
What's the repostory server host |
java.lang.String |
getKeyFile()
|
java.text.Format |
getLogDateFormat()
|
int |
getMaxRetries()
Returns the maximum number of times to collect changes |
java.lang.String |
getModule()
|
java.lang.String |
getName()
The display name for the repository type |
protected java.lang.String |
getPassphrase()
|
java.lang.String |
getPassword()
|
int |
getQuietPeriod()
Returns the number of seconds to wait between each retry |
java.io.File |
getSourceCodeDirectory(java.lang.String planKey)
CVS checks out the source into the a subdirectory (named after the build) in the working directory |
java.lang.String |
getSubstitutedBranchName()
|
java.lang.String |
getSubstitutedCvsRoot()
|
java.lang.String |
getSubstitutedKeyFile()
|
java.lang.String |
getSubstitutedWebRepositoryUrl()
Return web repository URL with extrapolated Bamboo variables |
java.lang.String |
getUrl()
|
java.lang.String |
getWebRepositoryUrl()
What's the repository's web url |
java.lang.String |
getWebRepositoryUrlForDiff(CommitFile file)
|
java.lang.String |
getWebRepositoryUrlForFile(CommitFile file)
Return a link to the given file on a viewcvs web server. |
java.lang.String |
getWebRepositoryUrlForRevision(CommitFile file)
|
java.lang.String |
getWebRepositoryUrlRepoName()
What's the repository's web url repository |
int |
hashCode()
|
boolean |
hasWebBasedRepositoryAccess()
Does this recpository provdide a web url intereface? |
boolean |
isQuietPeriodEnabled()
Returns true if we were to enable the quiet period |
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same or not and sets the referencesDifferentRepository flag accordingly |
boolean |
isSshAuthType()
|
void |
populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
Update the current object with data in the HierarchicalConfiguration |
void |
prepareConfigObject(BuildConfiguration buildConfiguration)
Do any preprocessing work before validation occurs |
java.lang.String |
retrieveSourceCode(java.lang.String planKey,
java.lang.String vcsRevisionKey)
Checks out the latest source code to an appropriate repository |
void |
setBranchName(java.lang.String branchName)
|
void |
setCvsRepositoryManager(CvsRepositoryManager cvsRepositoryManager)
|
void |
setCvsRoot(java.lang.String cvsRoot)
|
void |
setEncryptedPassword(java.lang.String encryptedPassword)
|
void |
setLogDateFormat(org.apache.commons.lang.time.FastDateFormat logDateFormat)
|
void |
setModule(java.lang.String moduleName)
|
void |
setPassword(java.lang.String password)
|
void |
setQuietPeriod(int i)
|
void |
setQuietPeriod(java.lang.String quietPeriod)
Defines the quiet period for this build (in seconds) |
void |
setWebRepositoryUrl(java.lang.String url)
Where should we link to to show build file changes? |
void |
setWebRepositoryUrlRepoName(java.lang.String repoName)
This is used to identify the repository on multi-repository configurations. |
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a HierarchicalConfiguration from the current state of the object |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Ensure we have the been initialised with the mandatory settings This is called from the build form. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.repository.WebRepositoryEnabledRepository |
---|
getWebRepositoryUrlForCommit |
Methods inherited from interface com.atlassian.bamboo.repository.Repository |
---|
checkConnection, getKey, getTriggerIpAddress, setReferencesDifferentRepository |
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2 |
---|
referencesDifferentRepository |
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin |
---|
customizeBuildRequirements, getEditHtml, getViewHtml, init |
Field Detail |
---|
public static final java.lang.String DATE_FORMAT
public static final org.apache.commons.lang.time.FastDateFormat DEFAULT_LOG_DATE_FORMAT
public static final java.lang.String NAME
public static final java.lang.String KEY
public static final java.lang.String CVS_VERSION_TYPE
public static final java.lang.String BUILD_MODULE_TRUNK
public static final java.lang.String BUILD_MODULE_BRANCH
public static final java.lang.String CVS_ROOT
public static final java.lang.String CVS_PASSWORD
public static final java.lang.String CVS_QUIET_PERIOD
public static final java.lang.String CVS_MODULE
public static final java.lang.String CVS_BRANCH
public static final java.lang.String CVS_AUTH_TYPE
public static final java.lang.String CVS_KEY_FILE
public static final java.lang.String CVS_PASSPHRASE
public static final java.lang.String CVS_LAST_UPDATE
public transient CvsRepositoryManager cvsRepositoryManager
Constructor Detail |
---|
public CVSRepository()
Method Detail |
---|
@NotNull public BuildChanges collectChangesSinceLastBuild(@NotNull java.lang.String planKey, @NotNull java.lang.String lastVcsRevisionKey) throws RepositoryException
collectChangesSinceLastBuild
in interface RepositoryV2
planKey
- lastVcsRevisionKey
-
RepositoryException
@NotNull public java.lang.String retrieveSourceCode(@NotNull java.lang.String planKey, @Nullable java.lang.String vcsRevisionKey) throws RepositoryException
RepositoryV2
retrieveSourceCode
in interface RepositoryV2
vcsRevisionKey
- - may be null if you want latest code
RepositoryException
public boolean isRepositoryDifferent(@NotNull Repository repository)
Repository
isRepositoryDifferent
in interface Repository
public void addDefaultValues(@NotNull BuildConfiguration buildConfiguration)
ConfigurablePlugin
#getEditHtml()
addDefaultValues
in interface ConfigurablePlugin
addDefaultValues
in class AbstractRepository
buildConfiguration
- - @NotNullpublic void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration)
ConfigurablePlugin
prepareConfigObject
in interface ConfigurablePlugin
buildConfiguration
- - @NotNull@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
validate
in interface ConfigurablePlugin
validate
in class AbstractRepository
buildConfiguration
- - @NotNull
public void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
populateFromConfig
in class AbstractRepository
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the object
toConfiguration
in interface ConvertibleFromConfig
toConfiguration
in class AbstractRepository
HierarchicalConfiguration
. Never nullpublic java.lang.String getWebRepositoryUrlForFile(CommitFile file)
getWebRepositoryUrlForFile
in interface WebRepositoryEnabledRepository
file
- The file that has been modified
public java.lang.String getWebRepositoryUrlForDiff(CommitFile file)
public java.lang.String getWebRepositoryUrlForRevision(CommitFile file)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object obj)
public java.lang.String getKeyFile()
public java.lang.String getSubstitutedKeyFile()
protected java.lang.String getPassphrase()
public java.lang.String getAuthType()
getAuthType
in interface SelectableAuthenticationRepository
public java.lang.String getEncryptedPassword()
public void setEncryptedPassword(java.lang.String encryptedPassword)
@NotNull public java.lang.String getName()
Repository
getName
in interface Repository
public java.lang.String getUrl()
public int getMaxRetries()
QuietPeriodAwareRepository
getMaxRetries
in interface QuietPeriodAwareRepository
public void setWebRepositoryUrl(java.lang.String url)
WebRepositoryEnabledRepository
setWebRepositoryUrl
in interface WebRepositoryEnabledRepository
url
- The url of the repositories web interfacepublic void setWebRepositoryUrlRepoName(java.lang.String repoName)
WebRepositoryEnabledRepository
setWebRepositoryUrlRepoName
in interface WebRepositoryEnabledRepository
repoName
- The name of the repository we are viewing@NotNull public java.io.File getSourceCodeDirectory(@NotNull java.lang.String planKey)
getSourceCodeDirectory
in interface RepositoryV2
getSourceCodeDirectory
in class AbstractRepository
planKey
-
public java.lang.String getModule()
public void setModule(java.lang.String moduleName)
public java.lang.String getBranchName()
public java.lang.String getSubstitutedBranchName()
public void setBranchName(java.lang.String branchName)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public void setQuietPeriod(java.lang.String quietPeriod)
quietPeriod
- the number of seconds to wait for more checkinspublic void setQuietPeriod(int i)
public boolean isQuietPeriodEnabled()
QuietPeriodAwareRepository
isQuietPeriodEnabled
in interface QuietPeriodAwareRepository
public int getQuietPeriod()
QuietPeriodAwareRepository
getQuietPeriod
in interface QuietPeriodAwareRepository
public java.lang.String getCvsRoot()
public java.lang.String getHost()
Repository
getHost
in interface Repository
public boolean hasWebBasedRepositoryAccess()
WebRepositoryEnabledRepository
hasWebBasedRepositoryAccess
in interface WebRepositoryEnabledRepository
public java.lang.String getWebRepositoryUrl()
WebRepositoryEnabledRepository
getWebRepositoryUrl
in interface WebRepositoryEnabledRepository
public java.lang.String getSubstitutedWebRepositoryUrl()
public java.lang.String getWebRepositoryUrlRepoName()
WebRepositoryEnabledRepository
getWebRepositoryUrlRepoName
in interface WebRepositoryEnabledRepository
public java.lang.String getSubstitutedCvsRoot()
public void setCvsRoot(java.lang.String cvsRoot)
public boolean isSshAuthType()
public void setCvsRepositoryManager(CvsRepositoryManager cvsRepositoryManager)
protected java.lang.String getDecryptedPassphrase()
@NotNull public java.util.List<NameValuePair> getAuthenticationTypes()
SelectableAuthenticationRepository
getAuthenticationTypes
in interface SelectableAuthenticationRepository
public java.text.Format getLogDateFormat()
public void setLogDateFormat(org.apache.commons.lang.time.FastDateFormat logDateFormat)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |