Scan fails with "Unable to load build session" when system properties are passed after the ANT task command
Fortify Static Code Analyzer
Tested against SCA 20.2.2, 21.1.2, 21.2.3
Rulepack 2022 Q1
When passing system properties to ANT command during translation, the scan phase fails with "[error]: No valid input files were specified."
sourceanalyzer -project-root fortify -b ANT -debug -verbose ant compile jar run -DABC=DEF;-DXYZ=123
sourceanalyzer -project-root fortify -b ANT -debug -verbose -scan
[error]: No valid input files were specified.
Read Full Support Article here.
Support Article Reference Number (URL Name)
CyberRes Community Manager
If you find this post useful, give it a ‘Like’ or use ‘Verify Answer’