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?
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.
, , 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(); }
COM API StarTeam. .NET StarTeam SDK.
Source: https://habr.com/ru/post/1697489/More articles:C # + Castle ActiveRecord: HasAndBelongsToMany and collections - c #NPE в JBossWS на JBoss 4.2.2 с включенным jmxremote - javawrong telneting feedback key - solarisWhat is the best way to create a text file on a .net website? - .netHow to force two browser windows to use the same "session"? - browserstreaming wav files - c ++nHibernate не извлекает вручную измененные данные - nhibernateLinux domain management solution? - linuxDecoding letters ('a' .. 'z') from a sequence of bits without waste - language-agnostichttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1697494/how-long-would-it-take-to-setup-a-new-ci-repository&usg=ALkJrhiahE8rc5_HhOfG0MDMzS_TkW-j0QAll Articles