use of jetbrains.vcs.api.services.tc.MappingGeneratorService in project teamcity-rest by JetBrains.
the class VcsRoot method getRepositoryMappings.
public static Collection<VcsMappingElement> getRepositoryMappings(@NotNull final jetbrains.buildServer.vcs.VcsRoot root, @NotNull final VcsManager vcsManager) throws VcsException {
final VcsSettings vcsSettings = new VcsSettings(root, "");
final MappingGeneratorService mappingGenerator = vcsManager.getVcsService(vcsSettings, MappingGeneratorService.class);
if (mappingGenerator == null) {
return Collections.emptyList();
}
return mappingGenerator.generateMapping();
}
Aggregations