Is there a way to exclude generated-sources out of Fortify scan? I tried sourcepath option mentioned in the guide but it never seem to work for me.
-Dfortify.sca.sourcepath="**/target/generated-sources/**/*.java" or
-Dfortify.sca.sourcepath="**/target/generated-sources/**"
Both the above options ended up with the below warning
[WARNING] Bad value provided for option -sourcepath.
Do not add ** to sourcepath, specify the directories instead:
If you are using sourceanalyzer you can add the -exclude parameter, with this you can use wildchars, like