i want to analyze several single source in different path, e.g. a/b/c.java and d/e/f.java, how can i write the sonar-project.properties? like this: -Dsonar.sources=a/b/c.java&d/e/f.java?
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 `sonar-project.properties. There’s no need to do both.
Also, since you’re analyzing Java, you need to provide the class files as well.