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

Side by Side Diff: compiler/scripts/dart_analyzer.bat

Issue 11572054: Fix one more spaces in path problem with dart_analyzer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 @echo off 1 @echo off
2 rem #!/bin/bash --posix 2 rem #!/bin/bash --posix
3 rem Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 rem Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 rem for details. All rights reserved. Use of this source code is governed by a 4 rem for details. All rights reserved. Use of this source code is governed by a
5 rem BSD-style license that can be found in the LICENSE file. 5 rem BSD-style license that can be found in the LICENSE file.
6 rem 6 rem
7 rem stop if any of the steps fails 7 rem stop if any of the steps fails
8 rem set -e 8 rem set -e
9 rem 9 rem
10 10
11 rem SCRIPT_DIR=$(dirname $0) 11 rem SCRIPT_DIR=$(dirname $0)
12 set SCRIPT_DIR=%~dp0 12 set SCRIPT_DIR=%~dp0
13 if %SCRIPT_DIR:~-1%==\ set SCRIPT_DIR=%SCRIPT_DIR:~0,-1% 13 if %SCRIPT_DIR:~-1%==\ set SCRIPT_DIR=%SCRIPT_DIR:~0,-1%
14 14
15 rem DART_ANALYZER_HOME=$(dirname $SCRIPT_DIR) 15 rem DART_ANALYZER_HOME=$(dirname $SCRIPT_DIR)
16 for %%A in ("%SCRIPT_DIR\..") do set "DART_ANALYZER_HOME=%%~fA" 16 for %%I in ("%SCRIPT_DIR%\..") do set "DART_ANALYZER_HOME=%%~fI"
17 if %DART_ANALYZER_HOME:~-1%==\ set DART_ANALYZER_HOME=%DART_ANALYZER_HOME:~0,-1% 17 if %DART_ANALYZER_HOME:~-1%==\ set DART_ANALYZER_HOME=%DART_ANALYZER_HOME:~0,-1%
18 18
19 set FOUND_BATCH=0 19 set FOUND_BATCH=0
20 set FOUND_SDK=0 20 set FOUND_SDK=0
21 for %%a in (%*) do ( 21 for %%a in (%*) do (
22 if [%%a] == [--batch] set FOUND_BATCH=1 22 if [%%a] == [--batch] set FOUND_BATCH=1
23 if [%%a] == [-b] set FOUND_BATCH=1 23 if [%%a] == [-b] set FOUND_BATCH=1
24 if [%%a] == [--dart-sdk] set FOUND_SDK=1 24 if [%%a] == [--dart-sdk] set FOUND_SDK=1
25 ) 25 )
26 26
(...skipping 11 matching lines...) Expand all
38 rem *) 38 rem *)
39 rem ;; 39 rem ;;
40 rem esac 40 rem esac
41 rem done 41 rem done
42 rem 42 rem
43 43
44 setlocal EnableDelayedExpansion 44 setlocal EnableDelayedExpansion
45 set DART_SDK="" 45 set DART_SDK=""
46 if [%FOUND_SDK%] == [0] ( 46 if [%FOUND_SDK%] == [0] (
47 if exist "%DART_ANALYZER_HOME%\lib\core\core.dart" ( 47 if exist "%DART_ANALYZER_HOME%\lib\core\core.dart" (
48 set DART_SDK=--dart-sdk %DART_ANALYZER_HOME% 48 set DART_SDK=--dart-sdk "%DART_ANALYZER_HOME%"
49 ) else ( 49 ) else (
50 for /f %%i in ('echo %DART_ANALYZER_HOME%') do set DART_SDK_HOME=%%~dpi\dart -sdk 50 for /f %%i in ('echo %DART_ANALYZER_HOME%') do set DART_SDK_HOME=%%~dpi\dart -sdk
51 if exist "!DART_SDK_HOME!" ( 51 if exist "!DART_SDK_HOME!" (
52 set DART_SDK=--dart-sdk !DART_SDK_HOME! 52 set DART_SDK=--dart-sdk !DART_SDK_HOME!
53 ) else ( 53 ) else (
54 for /f %%j in ('call echo !DART_SDK_HOME!') do set DART_SDK_HOME=%%~dpj\da rt-sdk 54 for /f %%j in ('call echo !DART_SDK_HOME!') do set DART_SDK_HOME=%%~dpj\da rt-sdk
55 if exist "!DART_SDK_HOME!" ( 55 if exist "!DART_SDK_HOME!" (
56 set DART_SDK=--dart-sdk !DART_SDK_HOME! 56 set DART_SDK=--dart-sdk !DART_SDK_HOME!
57 ) else ( 57 ) else (
58 echo Couldn't find Dart SDK. Specify with --dart-sdk cmdline argument 58 echo Couldn't find Dart SDK. Specify with --dart-sdk cmdline argument
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 rem fi 130 rem fi
131 rem fi 131 rem fi
132 rem 132 rem
133 133
134 java %EXTRA_JVMARGS% %DART_JVMARGS% -ea -classpath "@CLASSPATH@" ^ 134 java %EXTRA_JVMARGS% %DART_JVMARGS% -ea -classpath "@CLASSPATH@" ^
135 com.google.dart.compiler.DartCompiler %DART_SDK% %* 135 com.google.dart.compiler.DartCompiler %DART_SDK% %*
136 136
137 rem exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \ 137 rem exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \
138 rem com.google.dart.compiler.DartCompiler ${DART_SDK} $@ 138 rem com.google.dart.compiler.DartCompiler ${DART_SDK} $@
139 rem 139 rem
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698