OLD | NEW |
1 @echo off | 1 @echo off |
2 rem Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 rem Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 rem for details. All rights reserved. Use of this source code is governed by a | 3 rem for details. All rights reserved. Use of this source code is governed by a |
4 rem BSD-style license that can be found in the LICENSE file. | 4 rem BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 set SCRIPT_DIR=%~dp0 | 6 set SCRIPT_DIR=%~dp0 |
7 if %SCRIPT_DIR:~-1%==\ set SCRIPT_DIR=%SCRIPT_DIR:~0,-1% | 7 if %SCRIPT_DIR:~-1%==\ set SCRIPT_DIR=%SCRIPT_DIR:~0,-1% |
8 | 8 |
9 for %%I in ("%SCRIPT_DIR%\..") do set "DART_ANALYZER_HOME=%%~fI" | 9 for %%I in ("%SCRIPT_DIR%\..") do set "DART_ANALYZER_HOME=%%~fI" |
10 if %DART_ANALYZER_HOME:~-1%==\ set DART_ANALYZER_HOME=%DART_ANALYZER_HOME:~0,-1% | 10 if %DART_ANALYZER_HOME:~-1%==\ set DART_ANALYZER_HOME=%DART_ANALYZER_HOME:~0,-1% |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 ) | 48 ) |
49 | 49 |
50 setlocal EnableDelayedExpansion | 50 setlocal EnableDelayedExpansion |
51 set EXTRA_JVMARGS=-Xss2M | 51 set EXTRA_JVMARGS=-Xss2M |
52 if [%FOUND_BATCH%] == [1] ( | 52 if [%FOUND_BATCH%] == [1] ( |
53 set EXTRA_JVMARGS=!EXTRA_JVMARGS! -client | 53 set EXTRA_JVMARGS=!EXTRA_JVMARGS! -client |
54 ) | 54 ) |
55 endlocal & set "EXTRA_JVMARGS=%EXTRA_JVMARGS%" | 55 endlocal & set "EXTRA_JVMARGS=%EXTRA_JVMARGS%" |
56 | 56 |
57 java %EXTRA_JVMARGS% %DART_JVMARGS% -ea -jar "%DART_ANALYZER_LIBS%\dartanalyzer.
jar" %DART_SDK% %* | 57 java %EXTRA_JVMARGS% %DART_JVMARGS% -ea -jar "%DART_ANALYZER_LIBS%\dartanalyzer.
jar" %DART_SDK% %* |
OLD | NEW |