I am programming an extension for analyzing files in an deliver changesets to a stream. It is an Advisor because if the analyze fails then you can't deliver anything.
In addition I have read the articles:
https://jazz.net/library/article/1000 https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable
But I have some doubts yet. I have created a plugin project with extension point ID: com.ibm.team.scm.server.deliver and a java class, but I don't know how to get the path of the files included in the deliver for analyzing them:
import org.eclipse.core.runtime.IProgressMonitor;
import com.ibm.team.process.common.IProcessConfigurationElement;
import com.ibm.team.process.common.advice.AdvisableOperation;
import com.ibm.team.process.common.advice.IAdvisorInfoCollector;
import com.ibm.team.process.common.advice.runtime.IOperationAdvisor;
import com.ibm.team.repository.common.TeamRepositoryException;
import com.ibm.team.repository.service.AbstractService;
public class CheckBadCharacterAdvisor extends AbstractService implements IOperationAdvisor{
@Override
public void run(AdvisableOperation operation,
IProcessConfigurationElement advisorConfiguration,
IAdvisorInfoCollector collector, IProgressMonitor monitor)
throws TeamRepositoryException {
Object data = operation.getOperationData();
// what else here?
}
}
How could I get the change sets included in the delivery? or What javadoc or steps do you follow for getting this information?