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

How to export source code from scm to local with batch or perl file?

Hello
Are there any ways or method to export/ download source code from scm to local by using batch file or perl file?
For example:
I have a file filetest.cs which already checkin in source control scm. Now I would like to export that file to local for build.
How can I do? Any document about it

0 votes



3 answers

Permanent link

 See https://jazz.net/library/article/620

0 votes

Comments

 You should also look into the RTC Build System Toolkit and/or the Jenkins integration for the build part. There is automation in lace that would allow you to load a repository workspace or stream to do the build without the need to code anything or create scripting.


Permanent link

Ralph's suggestion is the better one, but I don't see why you would need to export. The files should be on your workstation in your sandbox, presuming you are using the RTC Eclipse client. You might need to reload it or create a new workspace.
If you absolutely had to move the code somewhere else you could copy it from your eclipse workspace to wherever you need to.

0 votes


Permanent link

Thanks for your answer
I know that using command line is not good idea, If I can use RTC Eclipse client, it should be good idea. I will describe a short:
My source code will be checkin in a stream in scm and has 2 parts : project specific and library
Project A = ( Project A specific + library)
Project B = ( Project B specific + library)
Project C = ( Project C specific + library)
Project D = ( Project D specific + library)

library is common for all projects.
I don't know how to do configuration so that whenever I load Project A, library will also be loaded
whenever I load Project B, library will also be loaded
whenever I load Project C, library will also be loaded
My expectation is only one time loading,  loading with many times is not accepted
....
That's reason why I think about batch file to load library
Any answer for above configuration is welcome with many thanks

0 votes

Comments

You should consider looking into RTC SCM and play around with it a bit. What you describe above can easily be achieved by using repository workspaces, streams and components - which you would also use if using the RTC SCM command line. How you organize your projects into components is up to you. If you load a repository workspace usually all components are loaded. You have to make an effort not to. You can use hierarchical components to make clear the library is needed.

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
× 12,019
× 1,202

Question asked: Apr 21 '17, 4:45 a.m.

Question was seen: 2,779 times

Last updated: Apr 24 '17, 2:07 a.m.

Confirmation Cancel Confirm