XML Based Rules not reloading

We are using a custom plugin that loads rules from xml files. Everything works swell - except for when we make a rules file (xml file) change.
SonarQube does not appear to recognize that the files have changed. Editing an existing rule, add a new rule - nothing gets picked up.
Is there an API or Java method to refresh the Quality Profile and the Rules?

Hi,

Welcome to the community!

I’m not familiar with this method of loading rules, but at a guess the load is happening at SonarQube startup. Have you tried bouncing SonarQube to see if it picks up your changes?

 
Ann

How exactly are we supposed to support upgrading Rules for a Custom Plugin? I cannot find a method that would reinitialize the Rules Definitions.
Does SonarQube keep track of the version of the JAR - filename or what?
Do I have to access the database and delete a bunch of rows in some table?
I find this very bizarre that I cannot simply ask SonarQube to reload a Rule Set.

Hi,

You created two threads apparently on the same topic, so I’ve combined them.

 
Ann