Using plain Java API to upload files to a existing RTC component
Accepted answer
The source control command line would be an easier approach: https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fc_scm_cli.html
Plain Java: here is an example: https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/ the blog post also hints how to set up your environment and what you want to do in addition.
This might be interesting as well: https://rsjazz.wordpress.com/2014/09/02/reading-and-writing-files-directly-from-and-to-an-rtc-scm-stream/
Comments
If you can not install the SCM command line and the scripts to use it, how are you able to install the plain java client libraries (JAR files) and the application you developed?
Yes, I am author of that blog. The first link is based on my work, the second is based on a colleagues work. I try to make clear who contributed if I refer to others work in my blog.
You can check in and deliver new files (which creates the first version) and you can also check in and deliver a new version with changes. This is the same for the SCM commandline, and the plain java API.
The Plain Java API does
- Not necessarily have to load the repository workspace to share/check in
- Not necessarily need a representation as a local file. E.g. in the example with the zip file, the data is directly read from the zip file. If you calculate a file somehow, the data could be shared directly out of memory
The last items I don't know if this could be done with the SCm command line.
Last but not least, the API always has the caveat that there is no person to approach that will be able to tell you how that works. I only know what I have done and explained in my blog. That can be only a very small area of the available APIs. I am not really good with the SCM API. If you get into trouble, you might be the only person that can save you by looking into the SDK.
If you can not install the SCM command line and the scripts to use it, how are you able to install the plain java client libraries (JAR files) and the application you developed?
Yes, the Ralph answering this question is the Ralph who wrote the blog posts.
Joao,
you can basically unzip the SCM Command Line. It is no "Install" 8).
The SCM Command Line is the easiest way, I think. Java Is more effort.