Write a PreJob to prepare input for other sensors?

Hi,

I found the way to write a PostJob (org.sonar.api.batch.postjob.PostJob) but how can I write a PreJob?

Idea is to have a sensor running before all other sensors preparing some input data for them.

Concrete:

  • like to write a sensor doing XLS transformations
  • created XML files should be input for other sensors

Regards,
Günter

Hi @guwirth,

Simply annotate your Sensor with @Phase(name = Phase.Name.PRE): http://javadocs.sonarsource.org/7.9/apidocs/org/sonar/api/batch/Phase.html

Thanks