RTC Custom Precondition - Not able to access Junit View Part(eclipse api) in custom pre condition
Hi,
I am trying to write a rtc precondition that stops the developer from delivering the code to the server when there are any junit errors reported in the eclipse JUnit view.
To acheive this i tried using eclipse APIs, ViewPart(org.eclipse.ui.part.ViewPart) &TestRunnerViewPart(org.eclipse.jdt.internal.junit.ui).
The newly written precondition is listed as one of the preconditions by RTC but when the deliver option is done, this
precondition is not executed. Tried printing in the console but even the first line is not getting printed. But when i remove this reference to ViewPart of the eclipse API, then the plugin/precondition gets invoked during deliver action. Can any one give me a suggestion as to how to go about the issues.
One answer
If the plug in does not get picked up, there is almost always a problem with missing dependencies.
If the plugin works with an Eclipse development environment (see https://jazz.net/library/article/1000) but not in the production environment this is the typical issue.
This kind of precondition would have to be deployed and run in the Eclipse client as well, since it refers to a client plugin.
It might be worth to mention that there are related preconditions available already:
If the plugin works with an Eclipse development environment (see https://jazz.net/library/article/1000) but not in the production environment this is the typical issue.
This kind of precondition would have to be deployed and run in the Eclipse client as well, since it refers to a client plugin.
It might be worth to mention that there are related preconditions available already: