Index: sdk/bin/dartanalyzer.bat |
=================================================================== |
--- sdk/bin/dartanalyzer.bat (revision 35880) |
+++ sdk/bin/dartanalyzer.bat (working copy) |
@@ -14,8 +14,16 @@ |
set DART=%BIN_DIR%\dart |
set SNAPSHOT=%BIN_DIR%\snapshots\dartanalyzer.dart.snapshot |
-"%DART%" "%SNAPSHOT%" %* |
+rem Get absolute full name for SDK_DIR. |
+for %%i in ("%BIN_DIR%\..\") do set SDK_DIR=%%~fi |
+rem Remove trailing backslash if there is one |
+IF %SDK_DIR:~-1%==\ set SDK_DIR=%SDK_DIR:~0,-1% |
kasperl
2014/05/08 08:15:08
IF -> if
ricow1
2014/05/08 08:18:54
Done.
|
+ |
+set SDK_ARG=--dart-sdk=%SDK_DIR% |
+ |
+"%DART%" "%SNAPSHOT%" "%SDK_ARG%" %* |
+ |
endlocal |
exit /b %errorlevel% |