I am trying to incorporate HPE SCA into my gradle build process. And Within SCA, there is a built in compiler option by running
sourceanalyzer -b [buildid] gradle [tasks]
And I am trying to use gradle with a wrapper but I am getting this error
sourceanalyzer -b buildxyz ./gradlew clean build
starting init script
TaskListener registered.
Configuration on demand is an incubating feature.Task :clean
FAILURE: Build failed with an exception.
Where:
Initialization script ‘/Users/…/.fortify/sca17.2/build/buildxyz/init-script4841163810233991317.gradle’ line: 203What went wrong:
java.io.IOException: Cannot run program “sourceanalyzer”: error=2, No such file or directoryCannot run program “sourceanalyzer”: error=2, No such file or directory
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
But when I run sourceanalyzer…
>>>>>>>sourceanalyzer
Fortify Static Code Analyzer 17.20.0183
Copyright (c) 2003-2017 Hewlett Packard Enterprise Development LP
For command-line help, type 'sourceanalyzer -h'
Could it possibly be running the wrapper and calling the SCA within the wrapper?