@ECHO offREM Copyright 2014 The Flutter Authors. All rights reserved.REM Use of this source code is governed by a BSD-style license that can beREM found in the LICENSE file.REM ---------------------------------- NOTE ----------------------------------REMREM Please keep the logic in this file consistent with the logic in theREM `dart` script in the same directory to ensure that Flutter & Dart continue toREM work across all platforms!REMREM --------------------------------------------------------------------------SETLOCAL ENABLEDELAYEDEXPANSIONFOR %%i IN ("%~dp0..") DO SET FLUTTER_ROOT=%%~fiREM Include shared scripts in shared.batSET shared_bin=%FLUTTER_ROOT%/bin/internal/shared.batCALL "%shared_bin%"SET cache_dir=%FLUTTER_ROOT%\bin\cacheSET dart_sdk_path=%cache_dir%\dart-sdkSET dart=%dart_sdk_path%\bin\dart.exeREM Chaining the call to 'dart' and 'exit' with an ampersand ensures thatREM Windows reads both commands into memory once before executing them. ThisREM avoids nasty errors that may otherwise occur when the dart command (e.g. asREM part of 'flutter upgrade') modifies this batch script while it is executing.REMREM Do not use the CALL command in the next line to execute Dart. CALL causesREM Windows to re-read the line from disk after the CALL command has finishedREM regardless of the ampersand chain."%dart%" %* & exit /B !ERRORLEVEL!