通过 stcmd.exe 枚举 StarTeam 项目

发布于 2024-11-28 06:39:20 字数 962 浏览 2 评论 0原文

在我深入了解我正在寻找的内容之前,我想花点时间关注一下背景,以便大家(希望)能够清楚地了解整体情况。 我将从我既定的目标、我目前实现目标的方法以及我目前的困境开始。

目标:从位于任意 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

辞慾 2024-12-05 06:39:20

如果您好奇,我可以通过使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文