mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Revert "fix file lookup for exclude patterns"
This reverts commit 74630b0fd8.
This commit is contained in:
@@ -344,7 +344,7 @@ public class Main {
|
||||
for (String pattern : ap.getZeroOrMore(P_EXCLUDE))
|
||||
addPathPattern(excludes, System.getProperty("user.dir"), pattern);
|
||||
for (String excl : ap.getZeroOrMore(P_EXCLUDE_PATH)) {
|
||||
File exclFile = new File(new File(System.getProperty("user.dir")), excl).getAbsoluteFile();
|
||||
File exclFile = new File(excl).getAbsoluteFile();
|
||||
String base = exclFile.getParent();
|
||||
for (String pattern : NEWLINE.split(new WholeIO().strictread(exclFile)))
|
||||
addPathPattern(excludes, base, pattern);
|
||||
|
||||
Reference in New Issue
Block a user