【问题标题】:How to exclude target folder from Fortify scans如何从 Fortify 扫描中排除目标文件夹
【发布时间】:2016-08-13 16:09:35
【问题描述】:

我想从翻译和扫描中排除目标文件夹下的所有文件。我曾尝试使用 -exclude 参数,但它似乎不起作用。

[warning]: No files were excluded as the file patterns: [**/target/**/*] specified for -exclude option did not match any files.
HP Fortify Static Code Analyzer 6.42.0006 (using JVM 1.8.0_45)
Processing C:/path/ProjectName/target/test/test_fortify_exclusion2.jsp
Processing C:/path/ProjectName/target/test_fortify_exclusion.jsp

我也试过**target****/target/**

【问题讨论】:

    标签: fortify


    【解决方案1】:

    原来我需要指定根路径,最好是项目的路径。所以在这个例子中,它应该是:-exclude "C:/path/ProjectName/**/target/**/*"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-22
      • 2014-08-02
      • 1970-01-01
      • 2013-12-05
      相关资源
      最近更新 更多