SCM Migration Tool : How to deliver a file as a changeset to a component in RTC SCM using APIs.
Hello Team,
I have a usecase wherein I need to checkIn and deliver a given file as a ChangeSet to the mentioned component.
It is a migration process, from one system to RTC SCM. so the files are in my local drive. I need to checkin and deliver each file as a new changeset to that mentioned component.
Are there any RTC APIs to do this ?
Request you to kindly assist on this.
Thanks.
One answer
I was going through the following URL : https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/
I have a similar requirement, but instead of taking the files from the archive, we need to take the files from a given location and have a changeset and deliver the same. What are the alternative APIs to convert files to changeset ?
Please assist me on this.
Comments
The following link may also help: http://thescmlounge.blogspot.com/2013/10/committing-content-to-rtc-scm-with-sdk.html
1 vote
It does not matter where you get the files from, the code in https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/ does the trick if you provide the data as a output stream.
1 vote
I was trying the example in : http://thescmlounge.blogspot.in/2013/10/committing-content-to-rtc-scm-with-sdk.html.
What is the actual path that must be given ? I have tried with various paths(absolute, relative and WS also...but it is still failing)
But when giving the remote path, the code is failing with the following error :
Exception in thread "main" java.lang.RuntimeException: Could not resolve path [testCs/ab_ca_algo.java]
at test.TestClass.findRepositoryPath(TestClass.java:124)
at test.TestClass.main(TestClass.java:67)
Can someone please help :(
Thanks