Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fortify SCA Exclude Multiple Files

Tags:

fortify

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.

like image 883
JordanB Avatar asked Nov 16 '25 09:11

JordanB


1 Answers

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
like image 156
James Nix Avatar answered Nov 18 '25 19:11

James Nix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!