Can we deliver .zip file as a changeset in RTC SCM instead of unzipping the contents
Hello All,
showing 5 of 7
show 2 more comments
|
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Jul 21 '17, 2:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Yes, you can check in and deliver a zip file like any other type of file using the Java API.
Jazzuser user selected this answer as the correct answer
Comments but am getting the above mentioned exception when executing this below code from the sample link
Ralph Schoon
commented Jul 21 '17, 5:46 a.m.
| edited Jul 24 '17, 5:48 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Jazzuser user
commented Jul 24 '17, 8:30 a.m.
Thanks Ralph :) this worked for me :)
|
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.
Comments
That's interesting. It works as is for me.
I'm curious how the .zip files get unzipped automatically in your environment?
Thanks for the reply Donald.
I have taken the sample example from : https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/
However am getting the following exception when I have .zip as a child folder in my parent .zip folder.
Parent.zip
sample.txt
child.zip
Here it is working fine for sample.txt. but exception for child.zip
Why is this issue happening ? Please suggest on this :( Thanks
Exception :
com.ibm.team.repository.common.TeamRepositoryException: Input length = 1
at com.ibm.team.scm.client.content.BasicVersionedContentManager$StreamLengthUtility.run(BasicVersionedContentManager.java:239)
at com.ibm.team.scm.client.content.BasicVersionedContentManager.storeContent(BasicVersionedContentManager.java:313)
at com.ibm.team.filesystem.client.internal.content.FileContentManager.storeContent(FileContentManager.java:306)
at com.bosch.rtc.scm.mkstortcmigrator.ArchiveToSCMExtractor.extractFile(ArchiveToSCMExtractor.java:202)
at com.bosch.rtc.scm.mkstortcmigrator.ArchiveToSCMExtractor.extract(ArchiveToSCMExtractor.java:157)
at com.bosch.rtc.scm.mkstortcmigrator.ArchiveToSCMExtractor.extractFileToComponent(ArchiveToSCMExtractor.java:114)
at com.bosch.rtc.scm.mkstortcmigrator.MksToRtcMigrator.main(MksToRtcMigrator.java:58)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
Sorry, I'm not familiar with these codes. As you're following Ralph's sample, you should really seek help from @rschoon.
@Donald Nong,
request you to assist on how you are able to checkin the .zip file in your case.
Thanks
I was not aware that you're using API when I replied. Basically I was testing a completely different use case. You can ignore all I said in this post.
thanks for the reply Donald.