Skip to content

Commit

Permalink
Adds some notes about --batch flag.
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=89348225
  • Loading branch information
Googler authored and hanwen committed Mar 24, 2015
1 parent 68a4741 commit c8c64e7
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/cpp/blaze.cc
Original file line number Diff line number Diff line change
@@ -302,6 +302,8 @@ static vector<string> GetArgumentArray() {
result.push_back("--max_idle_secs");
result.push_back(std::to_string(globals->options.max_idle_secs));
} else {
// --batch must come first in the arguments to Java main() because
// the code expects it to be at args[0] if it's been set.
result.push_back("--batch");
}
result.push_back("--install_base=" + globals->options.install_base);
Original file line number Diff line number Diff line change
@@ -1074,6 +1074,7 @@ public void handleException(Throwable exception, SubscriberExceptionContext cont
public static void main(Iterable<Class<? extends BlazeModule>> moduleClasses, String[] args) {
setupUncaughtHandler(args);
List<BlazeModule> modules = createModules(moduleClasses);
// blaze.cc will put --batch first if the user set it.
if (args.length >= 1 && args[0].equals("--batch")) {
// Run Blaze in batch mode.
System.exit(batchMain(modules, args));

0 comments on commit c8c64e7

Please sign in to comment.