Using plain Java API to upload files to a existing RTC component
![]()
Hi, we have a process that creates a bunch of text files every week and save then in a directory.
I was tasked to find a way of uploading theses files automatically to a RTC repository component, so we can keep the change history of these files.
From what I gathered, the plain java api may work in this case, but I'm lost on how to use it.
Can someone point me in the right direction?
Thanks!
|
Accepted answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Apr 11 '18, 10:17 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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
Joao Bordignon selected this answer as the correct answer
Comments
Hi Ralph!
I had already read the last 2 links (are you the author?)
The command line appears tempting, but unfortunately I have no permission to install any software in the server where my application will run.
In the third link, the one writhen by Kevin, from what I understood, one can not create a new file directly, just change the contents of existing ones. Is this correct?
Thank you!
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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?
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
Ralph, thank you again!
I was just curious if you are the same Ralph who wrote the blog posts I had read, so I can thank you, they are really helpful.
I will do some experiments, since it appears that there are no easy way out for me.
About this:
Do not underestimate how stupid a big corporation bureaucracy can be. Apparently arbitrary code and random libraries are fine, but mention the words "install, "tool" or "script" and all hell comes loose.
Have a nice day!
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Yes, the Ralph answering this question is the Ralph who wrote the blog posts. Joao,
showing 5 of 6
show 1 more comments
|
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.