How to analyze multi single sourcefiles in differnet path when runing the scanner only one time?


(Xuejiangtao) #1

i want to analyze several single source in different path, e.g. a/b/ and d/e/, how can i write the like this: -Dsonar.sources=a/b/

(G Ann Campbell) #2


You could go for the comma-delimited approach you outlined, or you could be lazy and just say -Dsonar.sources=., and the current directory will be searched recursively for files with recognized extensions. Note that you would set this either on the command line with -D or in ` There’s no need to do both.

Also, since you’re analyzing Java, you need to provide the class files as well.