使用stcmd创建工作文件夹

时间:2016-08-22 16:14:28

标签: starteam

我一直在尝试编写一个stcmd来检查StarTeam存储库中的代码。这是命令的样子:

stcmd co -p "Username:Password@localHost:1024/Store Server/Store Server/USB/sources/$OEM$/$$/Setup/Scripts"

每次运行此代码时,都会收到以下响应:

  

C:\ StarTeam \ Store Server \ USB \ sources \ $ OEM $ \ $$ \ Setup \ Scripts \ osConfig.ps1(系统找不到指定的路径)

我猜我需要创建工作文件夹的位置才能使我的结帐命令正常工作。有没有办法使用stcmd创建存储库的工作文件夹?我知道我可以通过StarTeam来实现,但我想知道是否可以通过stcmd创建它,以便在我的代码运行时它可以在新计算机上创建文件夹。

2 个答案:

答案 0 :(得分:0)

您还没有说过您正在使用哪个版本,但在5.4中创建工作目录的命令是:

stdcmd local-mkdir

所以你需要这样的东西:

stdcmd local-mkdir -p "Username:Password@localHost:1024/Store Server/Store Server/USB/sources/$OEM$/$$/Setup/Scripts"

这是您问题的答案,但我不确定它是否可以解决您的问题!

答案 1 :(得分:0)

不确定您正在使用哪个版本的StarTeam,但至少在13.0中,有一个选项-cwf(checkout工作文件夹),您可以将其附加到check-out命令。如果你还希望这个结帐所述工作文件夹的子文件夹,你也可以附加-is(包括子文件夹,也许?)。所以,试试:

stcmd co -p "Username:password@localHost:1024/Store Server/Store Server/USB/sources/$OEM$/$$/Setup/Scripts/" -cwf -is