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
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
12 answers

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
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
page 2of 1 pagesof 2 pages