|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin com.atlassian.bamboo.v2.build.BaseConfigurablePlugin com.atlassian.bamboo.repository.AbstractRepository com.atlassian.bamboo.repository.AbstractStandaloneRepository com.atlassian.bamboo.repository.cvsimpl.CVSRepository
public class CVSRepository
This class provides a CVS implemention of the Repository
interface.
Nested Class Summary | |
---|---|
static class |
CVSRepository.SymbolicNameType
|
Field Summary | |
---|---|
static java.lang.String |
BUILD_MODULE_BRANCH
|
static java.lang.String |
BUILD_MODULE_TRUNK
|
static java.lang.String |
COMPLETE_PLUGIN_KEY
|
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
|
static java.lang.String |
TEMPORARY_CVS_PASSWORD
|
Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository |
---|
BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, customVariableContext, repositoryModuleDescriptor, templateRenderer, textProvider |
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin |
---|
moduleDescriptor |
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 |
Fields inherited from interface com.atlassian.bamboo.repository.FilterChangesetAwareRepository |
---|
CHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERN |
Constructor Summary | |
---|---|
CVSRepository()
|
Method Summary | |
---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
Extension point for adding default values to the form for RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
BuildRepositoryChanges |
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()
Returns branch name exactly as configured in the UI. |
java.lang.String |
getCvsRoot()
|
protected java.lang.String |
getDecryptedPassphrase()
|
java.lang.String |
getEncryptedPassword()
|
java.lang.String |
getHost()
What's the repository server host |
java.lang.String |
getKeyFile()
|
java.lang.String |
getLocationIdentifier()
A string representing the location of the repository |
java.text.Format |
getLogDateFormat()
|
CvsRepositoryMavenPomAccessor |
getMavenPomAccessor()
|
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(PlanKey planKey)
Deprecated. |
java.lang.String |
getSubstitutedBranchName()
Returns branch name with all the variables extrapolated with current values. |
java.lang.String |
getSubstitutedCvsRoot()
|
java.lang.String |
getSubstitutedKeyFile()
|
CVSRepository.SymbolicNameType |
getSymbolicNameType()
|
java.lang.String |
getUrl()
|
java.util.Collection<NameValuePair> |
getVersionTypes()
|
int |
hashCode()
|
boolean |
isQuietPeriodEnabled()
Returns true if we were to enable the quiet period |
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same as the given repository |
boolean |
isSshAuthType()
|
protected boolean |
isWorkspaceEmpty(java.io.File sourceCodeDirectory)
|
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(BuildContext buildContext,
java.lang.String vcsRevisionKey)
Deprecated. |
protected void |
setAuthType(java.lang.String authType)
|
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) |
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 com.atlassian.bamboo.repository.AbstractStandaloneRepository |
---|
getAdvancedEditHtml, getAdvancedViewHtml, getEditHtml, getViewHtml |
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin |
---|
customizeBuildRequirements, removeBuildRequirements |
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin |
---|
isConfigurationMissing, populateContextForEdit, populateContextForView |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.repository.Repository |
---|
checkConnection, getKey, getMinimalEditHtml, getShortKey |
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin |
---|
customizeBuildRequirements, removeBuildRequirements |
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration |
---|
getEditHtml, getViewHtml |
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
---|
getDescription |
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 COMPLETE_PLUGIN_KEY
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_VERSION_TYPE
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 static final java.lang.String TEMPORARY_CVS_PASSWORD
public transient CvsRepositoryManager cvsRepositoryManager
Constructor Detail |
---|
public CVSRepository()
Method Detail |
---|
@NotNull public BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull java.lang.String planKey, @Nullable java.lang.String lastVcsRevisionKey) throws RepositoryException
collectChangesSinceLastBuild
in interface RepositoryV2
planKey
- lastVcsRevisionKey
-
RepositoryException
@Deprecated @NotNull public java.lang.String retrieveSourceCode(@NotNull BuildContext buildContext, @Nullable java.lang.String vcsRevisionKey) throws RepositoryException
LegacyRepository
retrieveSourceCode
in interface LegacyRepository
vcsRevisionKey
- - may be null if you want latest code
RepositoryException
public boolean isRepositoryDifferent(@NotNull Repository repository)
RepositoryV2
isRepositoryDifferent
in interface RepositoryV2
repository
- to compare against
protected boolean isWorkspaceEmpty(java.io.File sourceCodeDirectory)
isWorkspaceEmpty
in class AbstractRepository
@NotNull public CvsRepositoryMavenPomAccessor getMavenPomAccessor()
getMavenPomAccessor
in interface MavenPomAccessorCapableRepository
public void addDefaultValues(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
addDefaultValues
in interface BuildConfigurationAwarePlugin
addDefaultValues
in class AbstractRepository
buildConfiguration
- - @NotNullpublic void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
prepareConfigObject
in interface BuildConfigurationAwarePlugin
prepareConfigObject
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- - @NotNull@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
validate
in interface BuildConfigurationAwarePlugin
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 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)
protected void setAuthType(java.lang.String authType)
@NotNull public java.lang.String getName()
Repository
getName
in interface Repository
getName
in interface DescriptionProvider
getName
in interface NameProvider
public java.lang.String getUrl()
public int getMaxRetries()
QuietPeriodAwareRepository
getMaxRetries
in interface QuietPeriodAwareRepository
getMaxRetries
in class AbstractRepository
@NotNull @Deprecated public java.io.File getSourceCodeDirectory(@NotNull PlanKey planKey) throws RepositoryException
getSourceCodeDirectory
in interface RepositoryV2
getSourceCodeDirectory
in class AbstractRepository
planKey
-
RepositoryException
- A generic failurepublic java.lang.String getModule()
public void setModule(java.lang.String moduleName)
public java.lang.String getBranchName()
getSubstitutedBranchName()
should be used.
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
isQuietPeriodEnabled
in class AbstractRepository
public int getQuietPeriod()
QuietPeriodAwareRepository
getQuietPeriod
in interface QuietPeriodAwareRepository
getQuietPeriod
in class AbstractRepository
public java.lang.String getCvsRoot()
public java.lang.String getHost()
Repository
getHost
in interface Repository
@NotNull public java.lang.String getLocationIdentifier()
Repository
getLocationIdentifier
in interface Repository
getLocationIdentifier
in class AbstractRepository
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
@NotNull public java.util.Collection<NameValuePair> getVersionTypes()
public java.text.Format getLogDateFormat()
public void setLogDateFormat(org.apache.commons.lang.time.FastDateFormat logDateFormat)
public CVSRepository.SymbolicNameType getSymbolicNameType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |