I am setting up Sonar through Jenkins Sonar plugin and I have a couple of questions about the way Sonar interprets the directories I give it.
sources=srcDir1,srcDir2: from what I understand this is where I pass source dir of my project. My project is actually a multiproject with many source dirs inside. Is it okay to give Sonar the root path to the project and Sonar will know to go deep and find each projects.javafiles ? Or do I have to give it each one of the source dirs ? Also if I havesrc/com/mycompany/myproj/...package structure do I have to give it the end path, or the src path is sufficient ?binaries=binDir: Here I should give Sonar the path to the compiled.classcode or the packed.jar / .war / .earfiles so Findbugs will work. Same question here: I don’t have a central place with all the compiled classes, so do I have to specify each one of the paths ?
The Sonar ANT task contains a section on how to configure Sonar to analysis a multi-module build: