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" "$@" |