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

Unified Diff: sdk/bin/analyzer.bat

Issue 12335133: Create "binaries" for calling the new analyzer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
« sdk/bin/analyzer ('K') | « sdk/bin/analyzer ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/bin/analyzer.bat
===================================================================
--- sdk/bin/analyzer.bat (revision 0)
+++ sdk/bin/analyzer.bat (revision 0)
@@ -0,0 +1,25 @@
+@echo off
+rem Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+rem for details. All rights reserved. Use of this source code is governed by a
+rem BSD-style license that can be found in the LICENSE file.
+rem
+
+rem This file is used to execute the analyzer by running the jar file
+rem It is a simple wrapper enabling us to have simpler command lines in
+rem the testing infrastructure.
+
+set SCRIPTPATH=%~dp0
+
+rem Does the path have a trailing slash? If so, remove it.
+if %SCRIPTPATH:~-1%== set SCRIPTPATH=%SCRIPTPATH:~0,-1%
ahe 2013/03/12 15:47:04 This reminds me. I think there is a cut-and-paste
ricow1 2013/03/12 18:08:40 Yes, thanks
+
+rem DART_CONFIGURATION defaults to ReleaseIA32
+if "%DART_CONFIGURATION%"=="" set DART_CONFIGURATION=ReleaseIA32
+
+set arguments=%*
+
+set "JAR_DIR=%SCRIPTPATH%\..\..\build\%DART_CONFIGURATION%\new_analyzer"
+
+set "JAR_FILE=%JAR_DIR%\new_analyzer.jar"
+
+java -jar %JAR_FILE% %arguments%"
« sdk/bin/analyzer ('K') | « sdk/bin/analyzer ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698