Run method not triggering for delivery operation
Hi,
I was trying to run delivery operation plugin using operation participant and operation id is
"com.ibm.team.scm.server.deliver" .
But it's not triggering run method while debugging the code.
please check below implementation
public class ImplClass extends AbstractScmService implements
IOperationParticipant {
public void run(AdvisableOperation operation,
IProcessConfigurationElement participantConfig,
IParticipantInfoCollector collector, IProgressMonitor monitor)
throws TeamRepositoryException {
System.out.println("In run method");
Object operationData = operation.getOperationData();
if (!(operationData instanceof DeliverOperationData)) {
return;
}
DeliverOperationData data = (DeliverOperationData) operationData;
}
please provide some valuable suggestions.
Thanks,
Girish
Accepted answer
If you had done the extensions workshop and as a summary https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ you would have learned that there are XML deployment descriptors involved.
The code you wrote, never gets called? then likely your deployment descriptors like META.INF and plugin.xml are wrong. The information you provided is never going to be even called, if this is the case.