Reputation: 22947
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 .java
files ? Or do I have to give it each one of the source dirs ? Also if I have src/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 .class
code or the packed .jar / .war / .ear
files 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 ?Upvotes: 0
Views: 5222
Reputation: 77951
The Sonar ANT task contains a section on how to configure Sonar to analysis a multi-module build:
Upvotes: 1