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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 11234069: Removed a -d32 flag to dart_analyzer (fix for http://code.google.com/p/dart/issues/detail?id=5836) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | compiler/scripts/dart_analyzer.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/DartCompiler.java
===================================================================
--- compiler/java/com/google/dart/compiler/DartCompiler.java (revision 13988)
+++ compiler/java/com/google/dart/compiler/DartCompiler.java (working copy)
@@ -1370,20 +1370,20 @@
}
private static void showVersion(CompilerOptions options) {
- String revision = getSdkRevision(options);
- if (revision == null) {
- revision = "<unkown>";
+ String version = getSdkVersion(options);
+ if (version == null) {
+ version = "<unkown>";
}
- System.out.println("dart_analyzer version " + revision);
+ System.out.println("dart_analyzer version " + version);
}
/**
* @return the numeric revision of SDK, may be <code>null</code> if cannot find.
*/
- private static String getSdkRevision(CompilerOptions options) {
+ private static String getSdkVersion(CompilerOptions options) {
try {
File sdkPath = options.getDartSdkPath();
- File revisionFile = new File(sdkPath, "revision");
+ File revisionFile = new File(sdkPath, "version");
if (revisionFile.exists() && revisionFile.isFile()) {
BufferedReader br = new BufferedReader(new FileReader(revisionFile));
try {
« no previous file with comments | « no previous file | compiler/scripts/dart_analyzer.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698