Package jetbrains.buildServer.vcs.impl
Class UnknownVcsSupport
- java.lang.Object
-
- jetbrains.buildServer.vcs.ServerVcsSupport
-
- jetbrains.buildServer.vcs.impl.UnknownVcsSupport
-
- All Implemented Interfaces:
VcsSupportConfig
,VcsSupportContext
,VcsSupportCore
public class UnknownVcsSupport extends ServerVcsSupport
This VCS support is used instead of non existing VCS plugin.
-
-
Constructor Summary
Constructors Constructor Description UnknownVcsSupport(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
describeVcsRoot(VcsRoot vcsRoot)
Returns presentable text describing specified vcs root, for example: svn: http://www.somehost.com/project/BuildPatchPolicy
getBuildPatchPolicy()
CollectChangesPolicy
getCollectChangesPolicy()
VcsFileContentProvider
getContentProvider()
String
getCurrentVersion(VcsRoot root)
Repository state is now implemented via jetbrains.buildServer.vcs.CollectChangesPolicy, this method is left here for compatibilityMap<String,String>
getDefaultVcsProperties()
Returns default VCS property values.String
getDisplayName()
Returns name to be shown in the UI.String
getName()
Unique VCS identifier among other installed plugins.PropertiesProcessor
getVcsPropertiesProcessor()
Validator for the version control settings as displayed on configuration page for the VCS root.String
getVcsSettingsJspFilePath()
Version control settings editor page.Comparator<String>
getVersionComparator()
Returns comparator which allows to sort modifications by their version.String
getVersionDisplayName(String version, VcsRoot root)
Returns readable presentation of version (this format should be the same as DisplayVersion of VcsModification)boolean
sourcesUpdatePossibleIfChangesNotFound(VcsRoot root)
Must return true if source files in the build checkout directory can be updated even if no changes were detected between some versions.-
Methods inherited from class jetbrains.buildServer.vcs.ServerVcsSupport
getCore, getVcsCustomExtension, getVcsExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsSupportConfig
getCheckoutProperties, getServerCheckoutProperties, isAgentSideCheckoutAvailable, isDAGBased, isDAGBasedVcs
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsSupportContext
getLabelingSupport, getListFilesPolicy, getPersonalSupport, getTestConnectionSupport, getUrlSupport
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsSupportCore
allowSourceCaching, isCurrentVersionExpensive
-
-
-
-
Constructor Detail
-
UnknownVcsSupport
public UnknownVcsSupport(@NotNull String name)
-
-
Method Detail
-
getContentProvider
@NotNull public VcsFileContentProvider getContentProvider()
- Returns:
- implementation for file content operations
-
getCollectChangesPolicy
@NotNull public CollectChangesPolicy getCollectChangesPolicy()
- Returns:
- change collecting policy implementation
-
getBuildPatchPolicy
@NotNull public BuildPatchPolicy getBuildPatchPolicy()
- Returns:
- patch building policy implementation
-
getCurrentVersion
@NotNull public String getCurrentVersion(@NotNull VcsRoot root) throws VcsException
Description copied from class:ServerVcsSupport
Repository state is now implemented via jetbrains.buildServer.vcs.CollectChangesPolicy, this method is left here for compatibility- Overrides:
getCurrentVersion
in classServerVcsSupport
- Throws:
VcsException
-
sourcesUpdatePossibleIfChangesNotFound
public boolean sourcesUpdatePossibleIfChangesNotFound(@NotNull VcsRoot root)
Description copied from interface:VcsSupportCore
Must return true if source files in the build checkout directory can be updated even if no changes were detected between some versions. This is possible for example if VCS support plugin can't detect changes when a tag/label is moved. Note that if true is returned for some VCS root, plugin should be able to correctly build patch for this VCS root.
For example, if plugin performs changes collecting in the buildPatch method and then creates patch by detected changes, it should create clean patch for VCS root for which it returned true in this method.- Parameters:
root
- VCS root- Returns:
- see above
-
getName
@NotNull public String getName()
Description copied from interface:VcsSupportConfig
Unique VCS identifier among other installed plugins.- Returns:
- - unique version control name
-
getDisplayName
@NotNull public String getDisplayName()
Description copied from interface:VcsSupportConfig
Returns name to be shown in the UI.- Returns:
- name to be shown to user
-
getVcsPropertiesProcessor
public PropertiesProcessor getVcsPropertiesProcessor()
Description copied from interface:VcsSupportConfig
Validator for the version control settings as displayed on configuration page for the VCS root.- Returns:
- - properties validator
- See Also:
AbstractVcsPropertiesProcessor
-
getVcsSettingsJspFilePath
@NotNull public String getVcsSettingsJspFilePath()
Description copied from interface:VcsSupportConfig
Version control settings editor page.- Returns:
- path to configuration jsp page
-
describeVcsRoot
@NotNull public String describeVcsRoot(@NotNull VcsRoot vcsRoot)
Description copied from interface:VcsSupportConfig
Returns presentable text describing specified vcs root, for example: svn: http://www.somehost.com/project/- Parameters:
vcsRoot
- vcs root to describe- Returns:
- vcs root description
-
getDefaultVcsProperties
public Map<String,String> getDefaultVcsProperties()
Description copied from interface:VcsSupportConfig
Returns default VCS property values.- Returns:
- default configuration values
-
getVersionDisplayName
@NotNull public String getVersionDisplayName(@NotNull String version, @NotNull VcsRoot root) throws VcsException
Description copied from interface:VcsSupportConfig
Returns readable presentation of version (this format should be the same as DisplayVersion of VcsModification)- Parameters:
version
- version in internal formatroot
- root to get version display name for.- Returns:
- display format of repository version
- Throws:
VcsException
- some problem with version control server occurred.
-
getVersionComparator
@NotNull public Comparator<String> getVersionComparator()
Description copied from interface:VcsSupportConfig
Returns comparator which allows to sort modifications by their version. Latest modification in the sorted collection should be latest modification made in the repository.- Returns:
- comparator of two repository versions, both versions were got from VcsModification.getVersion, specific for this support.
- See Also:
Service comparator for dates
,service comparator for integer versions
,service comparator for string versions
-
-