How to check in multiple files in workspace using IScmService or using plain java api?
Accepted answer
I have published what I know about this API and here this is done: https://rsjazz.wordpress.com/2013/10/15/extracting-an-archive-into-jazz-scm-using-the-plain-java-client-libraries/
The files are in a zip file, but that should be irrelevant.
Comments
One other answer
If you are writing a client-side plugin, here's the corresponding API:
ITeamRepository repo = getRepo();
IWorkspaceHandle workspaceHandle = getWorkspace();
IWorkspaceManager wm = ScmPlatform.getWorkspaceManager(repo);
IWorkspaceConnection wc = wm.getWorkspaceConnection(workspaceHandle, monitor);
From here you can use the wc#commit(...) method. Note: this method has an argument called 'configOp' that is a Collection of IConfigurationOps. So you first create a new List<IConfigurationOps>, then iterate across the files (IVersionable) you want to check-in, call this: wc.configurationOpFactory().save(versionable); and then add that return result to your 'configOp' collection, then make the wc#commit(...) API call.