How Do I Export Process configuration source xml file from commandline
Hi There,
I would like to export the process configuration data xml file from some project area via command line. How to do this? Alternatively, How Can I view version History of Process configuration Data Xml file from command line? Could Anyone, please help me to understand this question? Thanks and regards Saravanan Lakshmanan. |
3 answers
Ralph Schoon (63.5k●3●36●46)
| answered Jul 13 '15, 5:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am not aware of an out of the box capability to export the process configuration to a file. You would have to use the API and write your own tool to do that.
Comments
Saravanan Lakshmanan
commented Jul 13 '15, 5:31 a.m.
Hi Ralph
You will most likely use the Plain Java API.
|
|
Ralph Schoon (63.5k●3●36●46)
| answered Jul 13 '15, 5:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I found this code on my disk:
/******************************************************************************* * Licensed Materials - Property of IBM * (c) Copyright IBM Corporation 2014. All Rights Reserved. * * * Note to U.S. Government Users Restricted Rights: Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *******************************************************************************/ package com.ibm.team.js.process.client; import java.io.ByteArrayOutputStream; import java.io.FileOutputStream; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.net.URI; import java.util.Map; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.NullProgressMonitor; import com.ibm.team.process.client.IProcessItemService; import com.ibm.team.process.common.IProjectArea; import com.ibm.team.process.common.ProcessContentKeys; import com.ibm.team.repository.client.IContentManager; import com.ibm.team.repository.client.ITeamRepository; import com.ibm.team.repository.client.ITeamRepository.ILoginHandler; import com.ibm.team.repository.client.ITeamRepository.ILoginHandler.ILoginInfo; import com.ibm.team.repository.client.TeamPlatform; import com.ibm.team.repository.common.IContent; import com.ibm.team.repository.common.TeamRepositoryException; /** * Skeleton for a plain-Java client, see * https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation. */ public class ModifyProjectAreaProcessXML { private static class LoginHandler implements ILoginHandler, ILoginInfo { private String fUserId; private String fPassword; private LoginHandler(String userId, String password) { fUserId = userId; fPassword = password; } public String getUserId() { return fUserId; } public String getPassword() { return fPassword; } public ILoginInfo challenge(ITeamRepository repository) { return this; } } public static void main(String[] args) { boolean result; TeamPlatform.startup(); try { result = run(args); } catch (TeamRepositoryException x) { x.printStackTrace(); result = false; } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); result = false; } finally { TeamPlatform.shutdown(); } if (!result) System.exit(1); } private static boolean run(String[] args) throws TeamRepositoryException, UnsupportedEncodingException { if (args.length != 4) { System.out .println("Usage: ProcessSharing |
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.