How to download a file from IBM Jazz revision control server using ant task?

筅森魡賤 提交于 2019-12-06 06:02:54

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...

See this example:

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 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!