简体   繁体   English

使用stcmd创建工作文件夹

[英]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.

相关问题 使用stcmd命令从Starteam检出多个文件夹 - Checkout multiple folders from Starteam using stcmd command StarTeam - 使用stcmd的特定修订的签出文件 - StarTeam - checkout file of a specific revision using stcmd StarTeam-使用stcmd签出重命名文件的特定修订版 - StarTeam - checkout specific revision of renamed file using stcmd 当stcmd co与-vl标志文件一起使用时,即使在第二次执行命令时, - when using stcmd co with -vl flag file is being checkout even at the second time the command is being executed 通过stcmd.exe枚举StarTeam项目 - Enumerating StarTeam projects via stcmd.exe 如何从StarTeam(stcmd.exe)获取标记的代码? - How to get the labeled code from StarTeam(stcmd.exe)? 在subversion中创建一个“标签”,指示下一个版本中应该包含哪些文件 - Create a “label” in subversion indicating what files should be in the next release 运行StarTeam 2008 Release 2客户端时出现“无法创建Java虚拟机”错误 - Get “Could not create the Java virtual machine” error running StarTeam 2008 Release 2 client 使用StarTeam插件的Jenkins频繁出现IOException - Frequent IOException with Jenkins using StarTeam plugin 使用Java StarTeam API,如何查找具有特定标签的StarTeam Item的哪些修订版? - Using the Java StarTeam API, how can I find which revisions of a StarTeam Item have a certain label?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM