How to load file under component root from Eclipse client
I have a component in the RTC repository that has the following structure (2 directories and 2 files under the component root):
-- DIR1
-- DIR2
-- setEnv.bat
-- build.xml
However, after I create my workspace and load the source, I only see the two directories; the two files (setEnv.bat and build.xml) are not loaded - Note that I don't want to create the "Component root" folder during the load.
Accepted answer
Using the normal "load" operation on a component in a workspace, you are only given the choice of loading folders. So the only way to load the two files is to load the folder that contains them (which in your case, is the root folder of the component). If you don't want to load the root folder of the component, but just one or more of the top level files, then you need to do that from the Repository_File view. In that view, right click on the file you want to load, and select "Load".
One other answer
pls confirm which option are you trying to load the files.
1) Find and Load Eclipse projects,option than the folders will create with root component and files and folders will be listed. but
2) if you are selecting the second option in load the root folder of the components as projects, only folders will be listed unless the files are under folder.
1) Find and Load Eclipse projects,option than the folders will create with root component and files and folders will be listed. but
2) if you are selecting the second option in load the root folder of the components as projects, only folders will be listed unless the files are under folder.
Comments
Here is how I tried to load the code:
- Select "Browse the components to select folders to be loaded"
- Then I select "DIR1" and "DIR2" from the list - note I don't see the files from the list
- The I select "Load the selected folder but do not create Eclipse project"
After the load, I only see the two folders, but not the files.
This works fine for me with RTC-4.0.2. When you say "I only see the two folders", do you mean using standard file system tools? (You will of course not see them in Eclipse, since you selected the "do not create Eclipse project" option.
Yes, I mean I only see the two folders in system's file explorer. I am using RTC3.0.1. I guess this problem has been fixed in the later releases. Do you have the WI that is used to track this change?
You need to select the root folder of the component (that's the folder that contains those two files). If you just select DIR1 and DIR2, you will only get those directories, and not the files that are siblings of those directories.