Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

how to get the files from merge changesets using client libraries ?

Hello

currently i get the error like illegalargumentexception : while fetching the files from merged changeset ,Is there any API to get that ?

Following is the code where I use to get the files from the changesets :

              Change changedFile = (Change)changedFileObj;

                versionableHandle = changedFile.afterState();

                if(null != versionableHandle){

                    Object file = SCMPlatform.getWorkspaceManager(currentWIRepo).versionableManager().fetchCompleteState(versionableHandle, monitor);

currentWIRepo.itemManager().fetchCompleteItem(changeSet.getComponent(), IItemManager.DEFAULT, null)).getName());

                    if(file instanceof IFileItem){

                          filesList = filesList+((IFileItem) file).getName()+",";

                   }

                } else{

                     versionableHandle = changedFile.beforeState();        

                    Object file = SCMPlatform.getWorkspaceManager(currentWIRepo).versionableManager().fetchCompleteState(versionableHandle, monitor);

                    if(file instanceof IFileItem){

                           filesList = filesList+((IFileItem) file).getName()+"(-),";

                        

                    }

               }


  Please tell if any hint ?

0 votes

Comments

Which line (or API call) was giving the IllegalArgumentException?


Be the first one to answer this question!

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,007

Question asked: Jun 13 '18, 1:58 a.m.

Question was seen: 1,852 times

Last updated: Jan 11 '19, 3:23 p.m.

Confirmation Cancel Confirm