如何使用ANT任务从IBM Jazz修订控制服务器下载文件



我对IBM Jazz非常新,我下载了RTC-BuildSystem-Toolkit,其中包括Eclipse插件和ANT构建任务定义。我的问题是如何从爵士服务器下载/获取文件?

我必须使用TeamFetch Anttask吗?

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

而不是 Teamfetch,我宁愿尝试(non-ant)命令 scm load,这是GUI操作的命令行等效:

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

请参阅此示例:

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而不是别名。

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

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

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

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

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

最新更新