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

add files and folders to source control

A simple question - how to add a folder + files structure to RTC component ?

A basic operation that is so simple in other tools looks complecate in RTC or maybe I miss it a lot of times.

I have a file system structure (folder + files) not par of any eclipse project!

I just want to add them to the source control.

Can you guide me ?

Thx,

0 votes

Comments

To get a simple answer, you will need to be more explicit about what client environment you are in.
Are you in a command shell, in an IDE, or in the Windows Explorer?
If it is an IDE, is it Eclipse or Visual Studio?
If it is the Eclipse IDE, where are the folders/files if they aren't in an eclipse project (Eclipse only shows you files in Eclipse projects).



5 answers

Permanent link
...and to complete the trifecta, I'll mention that in addition to the web UI or Eclipse client, you could also use the 'share' subcommand from the RTC command-line interface, if you wanted to quickly share contents from your local filesystem to the repository without dealing with Eclipse projects.

1 vote


Permanent link

Hi

So complicated for a simple operation !!!!

Why it is not a simple right click - add files like other tools ?

1 vote

Comments

I'm not sure I understand your usage scenario enough to tell where exactly the complication is.  If you're in the Eclipse client, it is just right click -> Team -> Share Project (actually, in current code it's even easier -- you can just drag and drop an unshared project onto a component in the Pending Changes view).

Your original question, though, indicated that your files aren't part of an Eclipse project, so I'm a little unsure about what exactly you want to right-click to initiate the share operation.  If the answer is the folder in Windows Explorer, there's yet another way that you can get your files into the repository: using the RTC shell integration for Windows Explorer.  You can get an overview of this functionality here, or read about it in more depth in its section in the doc.


Permanent link
 Demi,

It depends if you are using the RTC Eclipse client or the RTC web client.
With the RTC Eclipse client, a simple drag and drop will do the trick. You can drop the folder(s) you want to add to the your project into the RTC Project Explorer view. All the files contained in the folder will be added to the pending changes (then you have to deliver to commit the changes to the source control).
With the Web client, you have a "add file" or "add folder"option in the upper right corner.

0 votes


Permanent link
In addition to Jean-Lois, if you use the Eclipse Client, you would have to put the folder or its content in an Eclipse project in order to share it. And, Yes, I am aware it is not supposed to be a project. However Eclipse will not recognize it in case it is none.

So you would create a project with the name of your folder. You import the data it is supposed to contain. Then you share the project. Before you deliver, you select the .project file and add it to the ignore list.

You now have everything in SCM you want. Loading the folder will create a .project file however, since it is ignored, you won't have it in SCM.

0 votes


Permanent link
 In short the reply of both Administrator and Jazz Developer are MORE ANNOYING and IRRITATING of the <silly> questions of the users.

Do you think the user is using an atomic fueled rocket to add files to source control? Or maybe the NATIVE RTC????

Change the attitude if you want to sell this product!

P.S.: do not get offended, I see this <irritating> Admin's and Developers' attitude in several replies 

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: Feb 18 '13, 11:29 a.m.

Question was seen: 11,670 times

Last updated: Jan 15 '14, 12:13 a.m.

Confirmation Cancel Confirm