Support Tip: Scan fails with "Unable to load build session" when passing system properties with ANT during translation

0 Likes

Summary
Scan fails with "Unable to load build session" when system properties are passed after the ANT task command

Products
Fortify Static Code Analyzer

Environment
Tested against SCA 20.2.2, 21.1.2, 21.2.3
Rulepack 2022 Q1

Situation
When passing system properties to ANT command during translation, the scan phase fails with "[error]: No valid input files were specified."
eg
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)
KM000006407

Labels:

Knowledge Docs
Comment List
Related
Recommended