mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Synchronize the writes to buildInfo.json.
This commit is contained in:
parent
ca03c3612c
commit
26e647e9bd
1 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,10 @@ class IncrementalManager @Inject constructor(val args: Args, @Assisted val fileN
|
|||
private fun save(map: Map<String, TaskInfo>) {
|
||||
val bi = BuildInfo(map.values.toList())
|
||||
val json = GsonBuilder().setPrettyPrinting().create().toJson(bi)
|
||||
Files.write(Paths.get(fileName), json.toByteArray(Charset.defaultCharset()))
|
||||
|
||||
synchronized(BUILD_INFO_FILE) {
|
||||
Files.write(Paths.get(fileName), json.toByteArray(Charset.defaultCharset()))
|
||||
}
|
||||
}
|
||||
|
||||
private fun taskInfoFor(taskInfos: HashMap<String, TaskInfo>, taskName: String)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue