Ensure build dir exists before writing to it (#436)

Summary:
This is because `doLast` may happen after the cleanup came around to undo `createNativeDepsDirectories` specified as dependency.
Pull Request resolved: https://github.com/facebook/flipper/pull/436

Reviewed By: jknoxville

Differential Revision: D15260597

Pulled By: passy

fbshipit-source-id: b752af2b71217ebc1d802b43f1585e858a41fc00
This commit is contained in:
Pascal Hartig
2019-05-08 10:05:43 -07:00
committed by Facebook Github Bot
parent 9528078296
commit 3fa0a92754

View File

@@ -226,6 +226,7 @@ task prepareRSocket(dependsOn: [downloadRSocket], type: Copy) {
task writeCacheRevision(dependsOn: createNativeDepsDirectories) {
doLast {
buildDir.mkdirs()
revisionFile.text = CACHE_REVISION.toString()
}
}