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
3 answers
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.
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
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.