我正在尝试使用 Fortify 源分析器二进制文件来扫描 Android 项目。问题是即使我正确设置了类路径,也找不到类...
这是我的命令:
sourceanalyzer -b MS.ANDROID -clean;
sourceanalyzer -b MS.ANDROID -exclude androidTest -exclude gradle -exclude maven-config -exclude test -cp "/home/devuser/android-sdk-linux/platforms/android-21/android.jar:/var/lib/jenkins/workspace/myproject/**/*.jar" -source 1.7 src
我的输出是:
[warning]: The following references to java classes could not be resolved. Please make sure to supply all the required jar files that contain these classes to SCA.
AddressException
BasicClientCookieHC4
CancellationTokenSource
ConnectionConfig.Builder
ContentType
Continuation
Crashlytics
FileBody
HttpClientBuilder
Immutable
InternetAddress
MultipartEntityBuilder
PoolingHttpClientConnectionManager
Registry
RequestConfig.Builder
SSLConnectionSocketFactory
StringBody
SuppressFBWarnings
Task
Task.TaskCompletionSource
找到 android.jar 是因为如果我删除它,我还有更多未找到的类,但即使我为每个 jar 提供完整路径,也找不到项目下的所有 jar...
如果有人有一些 Fortify with Android(或包含在 gradle 中)的教程,那也很好。