java.lang.NoClassDefFoundError: com.ibm.team.filesystem.common.IFileItem
Hello, im trying to get the name of a file since server side.
I get this error java.lang.NoClassDefFoundError: com.ibm.team.filesystem.common.IFileIte
IFileItem f = (IFileItem) scmService.fetchState(chngObj, null, null);
Do you know another form to get the name of a file.
I have acces to the change set.
Thanks
|
One answer
The 'Filesystem' layer depends on the 'SCM' layer but not the other way around.
I.e. IScmService lives in 'com.ibm.team.scm.common' and the IFileItem which you are trying to cast to lives in 'com.ibm.team.filesystem.common', which it knows nothing about.
Fortunately you can just cast to an IVersionable instead of an IFileItem, which has a .getName() method
|
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.