public interface PersonalSupportBatchService extends VcsGenericService, VcsRemoteService
VcsSettings| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Boolean> |
canAffect(java.util.List<VcsSettings> vcsSettings,
java.util.List<java.lang.String> pathsToCheck,
boolean considerVcsRootParents)
Check if passed paths can affect sources under passed VCS Root settings
I.e.
|
MappingResult |
mapPath(java.util.Collection<VcsSettings> vcsSettings,
java.lang.String pathToMap,
boolean returnFirstMatch) |
@NotNull MappingResult mapPath(@NotNull java.util.Collection<VcsSettings> vcsSettings, @NotNull java.lang.String pathToMap, boolean returnFirstMatch) throws VcsException
vcsSettings - The collection of VcsSettings to run mapping forpathToMap - VCS path in a VCS-specific format.
For SVN, it is repositoryUUID|relativePathUnderRepositoryRoot
For Git, firstMonthRevisionHash-baseMergeRevision||relativePathUnderRepositoryRoot
For Perforce, p4ServerPort://depotFilePathStartingWithSlashesreturnFirstMatch - if true, MappingResult will contain only information about first match and won't check for duplicates and other mapping variantsVcsException - in a case of communication problemMappingResultjava.util.List<java.lang.Boolean> canAffect(@NotNull
java.util.List<VcsSettings> vcsSettings,
@NotNull
java.util.List<java.lang.String> pathsToCheck,
boolean considerVcsRootParents)
throws VcsException
// TC 10.0: // VcsSettings array contains all the settings of the same type from all build types // 1. Used to find suitable configurations for Idea plugin, each 10 seconds with considerVcsRootParents = true and a single path from each developer workstation // 2. When starting a personal build, used to fill a personal build dialog with suitable configurations (considerVcsRootParents = false and paths contain all paths from remote run)
vcsSettings - The collection of VcsSettings to run mapping forpathsToCheck - list of VCS paths in VCS-specific format (see mapPath(Collection, String, boolean) for some details)considerVcsRootParents - if true, additionally check cases when pathsToCheck is above the path, specified in VCS SettingsVcsException