Starteam 2005 COM API

Has anyone worked with the StarTeam COM API (particularly when interacting with C #).

I need to write a helper function that returns the directory structure from Starteam, but all I managed to get with this API was a list of views.

Has anyone else tried this?

+3
source share
3 answers

the Starteam object model is chiral, projects contain views, views contain folders, folders contain elements (child folders, files, cr, etc.)

, , , , , , , , . 4 , , DefaultPath AlternatePath, - DefaultPathFragment AlternatePathFragment.

+2

, , heirachy , , , FolderListManager

void BtnFindClick(object sender, EventArgs e)
{
    Borland.StarTeam.View v = StarTeamFinder.OpenView("username:pwd@server:49201/Project");
    FolderListManager lm = new FolderListManager(v);
    lm.IncludeFolders(v.RootFolder,-1); // -1 means recursively add child folders
    StringBuilder sb = new StringBuilder();
    foreach(Folder f in lm.Folders)
    {
        sb.AppendLine(f.Path);
    }
    txtResults.Text = sb.ToString();
}
+4

COM API StarTeam. .NET StarTeam SDK.

+1

Source: https://habr.com/ru/post/1697489/


All Articles