It's all about the answers!

Ask a question

how to download component data into the local file system from a stream


0
1
Quentin Guyot (1512) | asked Mar 08, 5:20 a.m.

Hi,
I already followed the lab1 to setup the environment -> https://jazz.net/library-content/wp-content/uploads/2014/11/RTC603ExtPoT.pdf.
I also read a lot of ressources, the fact is that I first want to be able to download in a local folder a stream content with the Plain Java Client Libraries, but I dont get where to start.

I also tried to use the ewm-scm-utils (https://github.com/jazz-community/ewm-scm-utils/blob/master/README.md) but I didn't succed to make it work, I have the following error "Error: Unable to access jarfile SCMUtils.jar".

QG

Accepted answer


permanent link
Ralph Schoon (63.3k33646) | answered Mar 08, 6:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 08, 6:34 a.m.

 I can only suggest my blog: https://rsjazz.wordpress.com/
The Jazz Community http://jazz-community.org/ and the projects there. 

If you have run the Extensions Workshop, you have run the WorkshopSetup, which does the inverse of what you want to try. 
The use case you describe, or at least close is in https://github.com/jazz-community/ewm-scm-utils in https://github.com/jazz-community/ewm-scm-utils/blob/master/com.ibm.js.team.scm.supporttools/src/main/java/com/ibm/js/team/supporttools/scmutils/commands/DownloadComponentBaseline.java

The jar file is here: https://github.com/jazz-community/ewm-scm-utils/releases/tag/V2.7.1

You can run the tools in an Eclipse EWM RTC SDK workshop. Download the code, import into the SDK workshop, add the user library for the Palin Java client libraries and use the launches.

See https://jazz.net/library/article/1000 the version 7.x lab 1.10 SET UP A WORKSPACE FOR PLAIN JAVA CLIENT LIBRARY DEVELOPMENT.

Or follow https://github.com/jazz-community/ewm-scm-utils/blob/master/com.ibm.js.team.scm.supporttools/ReadMe%20-%20HowToRelease.txt and create a release on your own, which requires the steps before.  

I have tried to explain the process to setup for the plain Java Client Libraries a bit more detailed in https://github.com/jazz-community/work-item-command-line?tab=readme-ov-file#prerequisites

Quentin Guyot selected this answer as the correct answer

Comments
1
Ralph Schoon commented Mar 08, 6:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Note, the SCM Command Line would also allow you to do what you want. Open the product help and search for lscm to get the command reference. 


Quentin Guyot commented Mar 08, 8:19 a.m.
thanks Ralph for your quick answer, 
it seems like downloading from and upload to a stream is reacheable using SCM command line, also it seems to be the easiest way to reach this goal, isn't it ?
Considerating that, I think I'll tend to that solution.

1
Ralph Schoon commented Mar 08, 9:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The SCM Command Line is built for this purpose. There is also the windows shell integration that could be used instead.

Using the Plain Java Client Libraries is certainly challenging. 

Your answer


Register or 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.