Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: sdk/bin/dartanalyzer.bat

Issue 273863002: Add dart-sdk argument when calling the dart based analyzer in the created sdk (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/bin/dartanalyzer ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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%
« no previous file with comments | « sdk/bin/dartanalyzer ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698