通过 stcmd.exe 枚举 StarTeam 项目
在我深入了解我正在寻找的内容之前,我想花点时间关注一下背景,以便大家(希望)能够清楚地了解整体情况。 我将从我既定的目标、我目前实现目标的方法以及我目前的困境开始。
目标:从位于任意 StarTeam 服务器中的每个 StarTeam 项目的任何视图中提取所有子目录。
到目前为止,我在使用 stcmd.exe 方面运气特别好,
// lets me see what I'm about to check out
.\stcmd list -short -p "username:[email protected]:1024/projectName" -is "*"
// checks out all files contained in the specified view
.\stcmd co -p "username:[email protected]:1024/projectName/view1.2.3" -is "*"
说实话,我几乎就成功了。我的困难是我不提前知道特定 StarTeam 项目下可能存在什么视图。我正在寻找一种获取项目视图列表的编程方式,这样我就可以通过 powershell 或其他方式枚举它们。
这有道理吗?我只是不想手动查看每个项目并运行 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.
So far, I've had particular luck using stcmd.exe
// lets me see what I'm about to check out
.\stcmd list -short -p "username:[email protected]:1024/projectName" -is "*"
// checks out all files contained in the specified view
.\stcmd co -p "username:[email protected]: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. 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.
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. It must be automated!
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您好奇,我可以通过使用 StarTeam SDK 找出项目和视图列表,然后调用 stcmd.exe 查看每个项目和视图来完成此操作。
If you are curious, I was able to get this done by using the StarTeam SDK to find out the list of projects and views, and then call stcmd.exe to check out each one.