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

Loading a component root as a directory during a build?

How do I load a component root as a directory during a build? I can do it from the command line and from the UI. The Component load rules in the build definition only allows for folders within a component.

I imported a ClearCase VOB into an RTC component and it has this structure:
VOB_Name
-> CommonFile.txt
-> Dir1
-> Dir2

Unless I load the component root (i.e. VOB_Name) as a directory I do not get the CommonFile.txt loaded. I cannot figure out how to do this as part of the build automation.

Thanks,

Jeff

0 votes



12 answers

Permanent link
Hey ...can u plz help me on this ...i have been usign scm load command to load a workspace component wise ...now i just want to do the same through java api ...i have been trying but not able to figure out ....can u suggest any solution for this .....

0 votes


Permanent link
neerav,

The Filesystem client APIs for loading a workspace are a bit involved. The SourceControlUtility class, used in JBE and the Ant tasks, has a simplified interface to do the load. You can look at what it does, but note that it's internal code, not API.

See method com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(ITeamRepository, IWorkspaceHandle, String, IProgressMonitor)
in the source for /com.ibm.team.build.toolkit/src/com/ibm/team/build/internal/scm/SourceControlUtility.java

0 votes

1–15 items
page 2of 1 pagesof 2 pages

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: Dec 15 '09, 6:10 p.m.

Question was seen: 13,106 times

Last updated: Dec 15 '09, 6:10 p.m.

Confirmation Cancel Confirm