我想从翻译和扫描中排除目标文件夹下的所有文件。我尝试过使用 -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/**
。
最佳答案
结果我需要指定根路径,最好是项目的路径。因此,在此示例中,它应该是: -exclude "C:/path/ProjectName/**/target/**/*"
关于fortify - 如何从 Fortify 扫描中排除目标文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36752974/