Fix path to .bat file (#15824)

This commit is contained in:
Mikkel Nygaard Ravn 2018-03-22 13:22:44 +01:00 committed by GitHub
parent 145abb6dbf
commit f90c54c6ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,12 +92,9 @@ class FlutterProject {
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 inDirectory(new Directory(rootPath), () async {
exec(path.join('android', 'gradlew.bat'), <String>['--stop'], canFail: true);
});
}
await parent.delete(recursive: true);
}