There are some methods in my application using Sonar Java API 4.2. But, I have upgraded to 5.6.1 and unable to implement the replacements for these methods.
org.sonar.api.resources.Project.path();
I tried usingSensorContext.fileSystem().baseDir().toString()
as a replacement. is the functionality same?In
org.sonar.api.batch.Sensor.analyse(Project project,SensorContext context)
, Project and SensorContext have been deprecated and I am looking at only 2 new methods in the newSensor
interface which aredescribe(SensorDescriptor descriptor)
andexecute(SensorContext context)
. How do I input the Project path as previously?
Please help! Thanks!