Write .set file for source file

This commit is contained in:
Chris Smowton
2021-10-01 15:35:03 +01:00
committed by Ian Lynagh
parent b299779750
commit 4a18705d73
2 changed files with 3 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -202,6 +202,7 @@ class ExternalClassExtractor(val logger: FileLogger, val sourceFilePath: String,
}
}
} while (!externalClassWorkList.isEmpty());
output.writeTrapSet()
}
}