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

Unified Diff: sdk/bin/dartanalyzer

Issue 14110004: Add the new dart analyzer to the SDK. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/dartanalyzer
===================================================================
--- sdk/bin/dartanalyzer (revision 21232)
+++ sdk/bin/dartanalyzer (working copy)
@@ -1,5 +1,5 @@
#!/bin/bash --posix
-# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
@@ -46,12 +46,12 @@
fi
fi
-if [ -f $DART_SDK_HOME/util/analyzer/dart_analyzer.jar ] ; then
- DART_ANALYZER_LIBS=$DART_SDK_HOME/util/analyzer
-elif [ -f $DART_ANALYZER_HOME/util/analyzer/dart_analyzer.jar ] ; then
- DART_ANALYZER_LIBS=$DART_ANALYZER_HOME/util/analyzer
+if [ -f $DART_SDK_HOME/util/dartanalyzer/dartanalyzer.jar ] ; then
+ DART_ANALYZER_LIBS=$DART_SDK_HOME/util/dartanalyzer
+elif [ -f $DART_ANALYZER_HOME/util/dartanalyzer/dartanalyzer.jar ] ; then
+ DART_ANALYZER_LIBS=$DART_ANALYZER_HOME/util/dartanalyzer
else
- echo "Configuration problem. Couldn't find dart_analyzer.jar."
+ echo "Configuration problem. Couldn't find dartanalyzer.jar."
exit 1
fi
@@ -75,5 +75,5 @@
fi
fi
-exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \
- com.google.dart.compiler.DartCompiler ${DART_SDK} $@
+exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -jar \
+ "$DART_ANALYZER_LIBS/dartanalyzer.jar" ${DART_SDK} $@
« no previous file with comments | « README.dart-sdk ('k') | sdk/bin/dartanalyzer.bat » ('j') | sdk/bin/dartanalyzer.bat » ('J')

Powered by Google App Engine
This is Rietveld 408576698