简体   繁体   English

通过stcmd.exe枚举StarTeam项目

[英]Enumerating StarTeam projects via stcmd.exe

Before I get into the nitty-gritty of what I am looking for, I'd like to take a moment and focus on the background so that the big picture will (hopefully) be clear for all of you. 在深入了解我要寻找的东西之前,我想花一点时间专注于背景,以便(希望)对所有人清晰。 I'll start with my stated goal, my current method for achieving it, and where I'm stuck at. 我将从我陈述的目标,实现该目标的当前方法以及我坚持的目标开始。

Goal: Extract all subdirectories from any view of every StarTeam project located in an arbitrary StarTeam server. 目标:从位于任意StarTeam服务器中的每个StarTeam项目的任何视图中提取所有子目录。

So far, I've had particular luck using stcmd.exe 到目前为止,我使用stcmd.exe特别幸运

// lets me see what I'm about to check out  
.\stcmd list -short -p "username:password@domain.com:1024/projectName" -is "*"

// checks out all files contained in the specified view
.\stcmd co -p "username:password@domain.com:1024/projectName/view1.2.3" -is "*"

To be honest, I'm almost there. 老实说,我快到 My difficulty is that I do not know ahead of time what views may exist under a particular StarTeam project. 我的困难在于,我无法提前了解特定StarTeam项目下可能存在的观点。 I am looking for a programmatic way of obtaining a list of views for projects, so I can enumerate them via powershell or what have you. 我正在寻找一种以编程方式获取项目视图列表的方式,因此我可以通过powershell或您拥有的列举它们。

Does that make sense? 那有意义吗? I just don't want to have to manually look at each project and run stcmd.exe to check out each view. 我只是不想手动查看每个项目并运行stcmd.exe来签出每个视图。 It must be automated! 它必须是自动化的!

Thanks in advance :) 提前致谢 :)

如果您感到好奇,可以使用StarTeam SDK查找项目和视图的列表,然后调用stcmd.exe来检查每个项目,以完成此任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM