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

Unified Diff: sdk/bin/analyzer

Issue 12438007: Updates to the new analyzer to help make the try bot happy. (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
Index: sdk/bin/analyzer
===================================================================
--- sdk/bin/analyzer (revision 19891)
+++ sdk/bin/analyzer (working copy)
@@ -19,6 +19,10 @@
# Unlike $0, $BASH_SOURCE points to the absolute path of this file.
PROG_NAME="$(follow_links "$BASH_SOURCE")"
+BIN_DIR="$(follow_links "$(cd "${PROG_NAME%/*}" ; pwd -P)")"
ricow1 2013/03/13 07:06:05 could we just use CUR_DIR below, it is the same as
devoncarew 2013/03/13 17:04:50 Done.
+
+SDK_DIR="$(cd "${BIN_DIR}/.." ; pwd -P)"
+
# Handle the case where the binary dir has been symlinked to.
CUR_DIR="$(follow_links "$(cd "${PROG_NAME%/*}" ; pwd -P)")"
@@ -36,4 +40,4 @@
JAR_FILE="$JAR_DIR/new_analyzer.jar"
-exec java -jar $JAR_FILE "$@"
+exec java -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@"

Powered by Google App Engine
This is Rietveld 408576698