Fix path to .bat file (#15824)
This commit is contained in:
parent
145abb6dbf
commit
f90c54c6ed
@ -92,12 +92,9 @@ class FlutterProject {
|
|||||||
if (Platform.isWindows) {
|
if (Platform.isWindows) {
|
||||||
// A running Gradle daemon might prevent us from deleting the project
|
// A running Gradle daemon might prevent us from deleting the project
|
||||||
// folder on Windows.
|
// folder on Windows.
|
||||||
await inDirectory(
|
await inDirectory(new Directory(rootPath), () async {
|
||||||
new Directory(path.join(rootPath, 'android')),
|
exec(path.join('android', 'gradlew.bat'), <String>['--stop'], canFail: true);
|
||||||
() async {
|
});
|
||||||
exec('gradlew.bat', <String>['--stop'], canFail: true);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
await parent.delete(recursive: true);
|
await parent.delete(recursive: true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user