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.
Comments
Hi Ralph,
Hi,
The information provided is not nearly enough and I don't know anyone who would be able to provide informed help based on it.
I'd suggest you run the workshop mentioned in the link. https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/. If you had done the extensions workshop and as a summary you would have learned that there are XML deployment descriptors involved. And you can work with Jetty. The new version of the workshop has added content around deployment.
There are also additional downloadable examples on that blog that work. If this is valuable enough for you, I would suggest you do the workshop. The example should deploy and work with Jetty. With some examples you can compare the manifest and plugin files.
If the extensions don't show up in the configuration or don't fire it is usually some ID issue (e.g. typo) or some dependency issue.