Help defining sonar.java.binaries path

Hello
I am having a problem figuring out how to use wildcards with sonar.java.binaries.

Take the following directory structure. Each one contains class files.
dir1/subdirA/target/classes
dir2/subdirA/subdirB/target/classes/subdirC
dir3/subdirD/subdirE/subdirF/classes/subdirG

How can I define a single entry for the sonar.java.binaries path?

I have tried the following below but the scan fails message:
ERROR: No files nor directories matching ‘**/*.class’

sonar.java.binaries=**/*.class
sonar.java.binaries=dir*/**/*.class
sonar.java.binaries=*/**/*.class

Any input would be appreciated.
Thanks

Hi,

sonar.java.binaries is looking for a comma-delimited list of directories, so the *.class part at the end is hurting rather than helping. Also, the documentation for that property doesn’t indicate that it supports wildcards, so if you really do need to list multiple directories I think you’re going to need to do something like this:

sonar.java.binaries=foo,bar/bin,baz

 
HTH,
Ann

Thanks for the response Ann. I was hoping the wildcard would have done the trick.

I am getting this below error

INFO: Configured Java source version (sonar.java.source): none
INFO: JavaClasspath initialization
ERROR: Invalid value for sonar.java.binaries
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 9.276s
INFO: Final Memory: 10M/161M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution

Hi G Ann Camp,
I have mentioned the path as below

sonar.java.binaries=**/target/classes

it throws the error

INFO: Configured Java source version (sonar.java.source): none
INFO: JavaClasspath initialization
ERROR: Invalid value for sonar.java.binaries
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 9.276s
INFO: Final Memory: 10M/161M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution