Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Issues with teamFetch command

My RTC Repository looks like this. Please note that the directories and the files are in the same level

-Dir:1
-Dir:2
-Dir:3
.
.
.
-Dir:n
-file:1
-file:2
.
.
-file:n

I am trying to fetch the entire repository contents from my buildforge project. I have got 2 questions on this.

1) How can fetch a particular directory alone than the whole of the repository?

2) I am able to fetch the entire set of directories(dir:1,di:r2..dir: n); but NOT able to fetch the files(1,2..n), though they all are in the same level. Am I missing something here?


Thanks in anticipation.

0 votes



7 answers

Permanent link
If the files are at the root of the component (which it sounds like), then this is a known defect:
SourceControlUtility doesn't load top-level files (102186).

Please see comment 9 for a workaround using load rules.
Load rules can also be used to address their other issue, of loading only particular directories.

Unfortunately, the teamFetch Ant task does not currently support load rules, just JBE. This is covered by:
teamFetch task should support load rules (118150).

If you're using the teamFetch task instead of JBE to do the load, a workaround is to use the SCM CLI, which does support load rules.
Please see http://jazz.net/library/article/192#CLI

0 votes


Permanent link
I have tried the SCM CLI and able to fetch the files at the root of the component. Thanks for the tip.

My other requirement is to fetch a particular directory alone which is part of a component.

My component -> Test

A sub-directory within that component -> Helloworld

Command I am trying -> scm load "xxx Test Workspace" --dir c:\sudTest --repository-uri https://localhost:9443/jazz -u Username --password PWD "Test"\Helloworld

Error message I am getting ->
Problem running 'load':
Unmatched selector encountered when finding remote load roots.

I know, I have messed up the loadrules.

Someone, pls help to fix this.

If the files are at the root of the component (which it sounds like), then this is a known defect:
SourceControlUtility doesn't load top-level files (102186).

Please see comment 9 for a workaround using load rules.
Load rules can also be used to address their other issue, of loading only particular directories.

Unfortunately, the teamFetch Ant task does not currently support load rules, just JBE. This is covered by:
teamFetch task should support load rules (118150).

If you're using the teamFetch task instead of JBE to do the load, a workaround is to use the SCM CLI, which does support load rules.
Please see http://jazz.net/library/article/192#CLI

0 votes


Permanent link
For the first problem, note that that defect was fixed in 2.0.0.2 iFix 3 (see 113853: Backport item 102186 to 2.0.0.x). You can use that version of the build toolkit against any 2.0.0.2 server.

For the second problem, of loading things selectively, I don't see the -L or -R arguments that would specify the load rules file (for details try: scm help load).

But in any case, it may be easier to just specify the files/folders to load, using separate invocations of the SCM CLI. I think the problem in your example is that you're using a backslash (between "Test" and Helloworld) so it's looking for a component named "Test\Helloworld".

I tried the following:
scm load -r {jazz repo} -u nedgar -t tmp "Build Workspace (MBP)" "Build/com.ibm.team.build.client"

which loaded the contents of the Build component's com.ibm.team.build.client project under the tmp directory (to tmp/com.ibm.team.build.client).

0 votes


Permanent link
I figured out the selective loading using the loadrules. It works now. It would be good,if the SCM CLI manual is exhaustive.

Thanks for your help.

For the first problem, note that that defect was fixed in 2.0.0.2 iFix 3 (see 113853: Backport item 102186 to 2.0.0.x). You can use that version of the build toolkit against any 2.0.0.2 server.

For the second problem, of loading things selectively, I don't see the -L or -R arguments that would specify the load rules file (for details try: scm help load).

But in any case, it may be easier to just specify the files/folders to load, using separate invocations of the SCM CLI. I think the problem in your example is that you're using a backslash (between "Test" and Helloworld) so it's looking for a component named "Test\Helloworld".

I tried the following:
scm load -r {jazz repo} -u nedgar -t tmp "Build Workspace (MBP)" "Build/com.ibm.team.build.client"

which loaded the contents of the Build component's com.ibm.team.build.client project under the tmp directory (to tmp/com.ibm.team.build.client).

0 votes


Permanent link
When you say "SCM CLI Manual" what are you referring to? The article linked above, or the doc on the SCM CLI in the Eclipse client help?

0 votes


Permanent link
I've opened 118337: Improve documentation of load rules in SCM CLI.

0 votes


Permanent link
Oh.I did refer the help available within eclipse client as well as within the RTC Infocenter portal.

When you say "SCM CLI Manual" what are you referring to? The article linked above, or the doc on the SCM CLI in the Eclipse client help?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 13 '10, 4:51 p.m.

Question was seen: 7,717 times

Last updated: Jun 13 '10, 4:51 p.m.

Confirmation Cancel Confirm