Unverified Commit 145abb6d authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Stop Gradle daemon before attempting to delete Flutter project (#15819)

parent 06135291
......@@ -89,6 +89,16 @@ class FlutterProject {
}
Future<Null> delete() async {
if (Platform.isWindows) {
// A running Gradle daemon might prevent us from deleting the project
// folder on Windows.
await inDirectory(
new Directory(path.join(rootPath, 'android')),
() async {
exec('gradlew.bat', <String>['--stop'], canFail: true);
},
);
}
await parent.delete(recursive: true);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment