With the sourceanalyzer, how can I provide multiple file/path exclusions during translation?
Following the example from: Fortify SCA exclude test folder\files
/src/main/xyz/pqr/Abc.java
/src/main/xyz/test/abc.xsd
/src/test/xyz/Xyz.java
I have tried adding multiple -exclude flags, as well as different delimiters, with no luck.
If you use the Scan Wizard and review the resultant .bat file, you can see how they are invoking sourceanalyzer. For your particular question, you can create an argument file like so:
-exclude "/src/main/xyz/pqr/Abc.java"
-exclude "/src/main/xyz/test/abc.xsd"
-exclude "/src/test/xyz/Xyz.java"
Name it something like Exclude.args and then invoke sourceanalyzer like so:
sourceanalyzer.exe -b MyBuild @Exclude.args
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With