[英]Create Working Folders using stcmd
I have been trying to write an stcmd that checks out code from a StarTeam repository. 我一直在尝试编写一个stcmd来从StarTeam存储库中签出代码。 Here's what the command looks like: 该命令如下所示:
stcmd co -p "Username:Password@localHost:1024/Store Server/Store Server/USB/sources/$OEM$/$$/Setup/Scripts"
Every time I run this code, I get the following response: 每次运行此代码,都会收到以下响应:
C:\\StarTeam\\Store Server\\USB\\sources\\$OEM$\\$$\\Setup\\Scripts\\osConfig.ps1 (The system cannot find the path specified) C:\\ StarTeam \\ Store Server \\ USB \\ sources \\ $ OEM $ \\ $$ \\ Setup \\ Scripts \\ osConfig.ps1(系统找不到指定的路径)
I'm guessing I need to have to create the working folder's location in order for my check-out command to work properly. 我想我需要创建工作文件夹的位置才能使我的检出命令正常工作。 Is there a way to create the working folders of a repository using stcmd? 有没有一种方法可以使用stcmd创建存储库的工作文件夹? I know I can do it through StarTeam, but I wanted to see if it's possible to create it through stcmd so it can create the folders on new computers when my code runs. 我知道我可以通过StarTeam做到这一点,但是我想看看是否可以通过stcmd创建它,以便它可以在我的代码运行时在新计算机上创建文件夹。
You haven't said which version you're using, but in 5.4 the command to create working directories is: 您尚未说明要使用哪个版本,但是在5.4中,用于创建工作目录的命令是:
stdcmd local-mkdir
so you'd need something like: 所以你需要像这样的东西:
stdcmd local-mkdir -p "Username:Password@localHost:1024/Store Server/Store Server/USB/sources/$OEM$/$$/Setup/Scripts"
This is the answer to your question, but I'm not sure it'll be the solution to your problem! 这是您的问题的答案,但我不确定这是否将解决您的问题!
Not sure which version of StarTeam you're using, but in 13.0 at least, there's an option -cwf (checkout working folders) which you can append to the check-out command. 不确定使用的是哪个版本的StarTeam,但是至少在13.0中,有一个选项-cwf(签出工作文件夹)可以附加到签出命令中。 if you also want this to checkout subfolders of said working folders, you can also append -is (include subfolders, maybe?). 如果您还希望它签出所述工作文件夹的子文件夹,则还可以附加-is(包括子文件夹,也许吗?)。 So, try: 因此,请尝试:
stcmd co -p "Username:password@localHost:1024/Store Server/Store Server/USB/sources/$OEM$/$$/Setup/Scripts/" -cwf -is
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.