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

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

Issue 12045088: Issue 8051. Make extended exit codes optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/java/com/google/dart/compiler/DartCompiler.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/CommandLineOptions.java
diff --git a/compiler/java/com/google/dart/compiler/CommandLineOptions.java b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
index 440b7bb2a6ed1dd823a2a0d150758ad684e19261..6d11bbc26d169fe7c7e68a56ce9131f816060aec 100644
--- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java
+++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
@@ -35,6 +35,10 @@ public class CommandLineOptions {
@Option(name = "--error_format",
usage = "Format errors as normal or machine")
private String errorFormat = "";
+
+ @Option(name = "--extended-exit-code",
+ usage = "0 - clean; 1 - has warnings; 2 - has errors")
+ private boolean extendedExitCode = false;
@Option(name = "--enable_type_checks",
usage = "Generate runtime type checks")
@@ -149,6 +153,10 @@ public class CommandLineOptions {
public File getDartSdkPath() {
return dartSdkPath;
}
+
+ public boolean extendedExitCode() {
+ return extendedExitCode;
+ }
/**
* Returns whether warnings from SDK files should be suppressed.
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/DartCompiler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698