如何使用ant任务从IBM Jazz版本控制服务器下载文件? [英] How to download a file from IBM Jazz revision control server using ant task?

查看:127
本文介绍了如何使用ant任务从IBM Jazz版本控制服务器下载文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对IBM Jazz还是很陌生,我已经下载了RTC-BuildSystem-Toolkit,其中包括eclipse插件和ant构建任务定义.我的问题是如何从Jazz服务器下载/获取文件?

I am very new to IBM Jazz, i have downloaded RTC-BuildSystem-Toolkit which includes eclipse plugin and ant build task definitions. My question is how to download/fetch a file from Jazz server?

我必须使用teamFetch anttask吗?

Do i have to use teamFetch anttask?

<teamFetch repositoryAddress="https://dev.1-gateway.org/ccm/"
                       userId="u12345"
                       password="p12345"
                       workspaceName="??"
                       buildResultUUID="??"
                       destination="??"
                       verbose="true" />

推荐答案

代替 scm load ,与GUI操作在命令行上等效:

Instead of Teamfetch, I would rather try the (non-ant) command scm load, which is the command-line equivalent of the GUI action:

右键单击存储库工作区的组件->
上下文菜单显示->
存储库文件,
在视图中,右键单击文件->
上下文菜单加载或加载为...

Right-click on the component of the repository workspace ->
context menu show ->
repository file,
in the view, rigth-click on the file ->
context menu load or load as...

请参见

c:\test>scm ls comp 1151
Workspace: (1151) "commandline" <-> (1147) "cli"
  Component: (1152) "commandline Default Component"
  Component: (1166) "Test Cases" 

c:\test>scm ls rf -r ella 1151 1152 --depth -
/
/CliTest2/
/CliTest2/CommandLine_Readme3.txt
/CliTest2/CommandLine_Readme2.txt
/CliTest2/CommandLine_Readme1.txt
/CliTest3/
/CliTest3/CommandLine_Readme3.txt
/CliTest3/CommandLine_Readme2.txt
/CliTest3/CommandLine_Readme1.txt

1151是工作空间别名,而1152是组件别名.
您还可以为每个项目指定名称或uuid而不是别名.

1151 is the workspace alias and 1152 is the component alias.
You can also specify the name or uuid instead of alias for each of these items.

远程路径中包含组件名称的远程路径:

Remote path with component name included in the remotepath:

c:\test\load>scm load 1151 "commandline Default Component/CliTest2/CommandLine_Readme3.txt"
Successfully loaded items into the sandbox.

远程路径中包含组件别名的远程路径:

Remote path with component alias included in the remotepath:

c:\test\load>scm load 1151 1152/CliTest2/CommandLine_Readme2.txt
Successfully loaded items into the sandbox.

注意:别名是临时的,不应在脚本中使用.

Note: Aliases are temporary and should not be used in scripts.

这篇关于如何使用ant任务从IBM Jazz版本控制服务器下载文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆