It's all about the answers!

Ask a question

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


vinitha dsouza (1451794) | asked Jun 13 '18, 1:58 a.m.

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 ?


Comments
David Lafreniere commented Jan 11 '19, 3:23 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

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

Be the first one to answer this question!


Register or to post your answer.