add interface for fetching output paths

This commit is contained in:
Richard Howell
2019-09-25 16:42:45 -07:00
parent ca63a2e69d
commit 0f6f260701
12 changed files with 142 additions and 3 deletions

View File

@@ -194,6 +194,17 @@ extension BuildServerBuildSystem: BuildSystem {
}
}
}
public func buildTargetOutputPaths(targets: [BuildTargetIdentifier], reply: @escaping ([OutputsItem]?) -> Void) {
let req = BuildTargetOutputPaths(targets: targets)
_ = self.buildServer?.send(req, queue: requestQueue) { result in
if let items = result.success?.items { reply(items) }
else {
log("error fetching build target outputs: \(result)")
reply(nil)
}
}
}
}
private func loadBuildServerConfig(path: AbsolutePath, fileSystem: FileSystem) throws -> BuildServerConfig {