mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Write .set file for source file
This commit is contained in:
committed by
Ian Lynagh
parent
b299779750
commit
4a18705d73
@@ -123,7 +123,7 @@ public class OdasaOutput {
|
||||
* Trap sets and dependencies.
|
||||
*/
|
||||
|
||||
private void writeTrapSet() {
|
||||
public void writeTrapSet() {
|
||||
trapsCreated.save(trapSetFor(currentSourceFile).toPath());
|
||||
}
|
||||
|
||||
@@ -294,6 +294,7 @@ public class OdasaOutput {
|
||||
throw new CatastrophicError("OdasaOutput only supports writing to compressed trap files");
|
||||
String relative = FileUtil.relativePath(trapFile, currentSpecFileEntry.getTrapFolder());
|
||||
trapFile.getParentFile().mkdirs();
|
||||
trapsCreated.addTrap(relative);
|
||||
return concurrentWriter(trapFile, relative, log, sym);
|
||||
}
|
||||
|
||||
|
||||
@@ -202,6 +202,7 @@ class ExternalClassExtractor(val logger: FileLogger, val sourceFilePath: String,
|
||||
}
|
||||
}
|
||||
} while (!externalClassWorkList.isEmpty());
|
||||
output.writeTrapSet()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user