Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jscomp: allow using AbstractCommandLineRunner.exitCodeHandler in non-…
…test mode. {Abstract,}CommandLineRunner do a lot of output wrangling including generating source line maps which makes it a decent programmatic interface, especially when many flags are pass-through. Doing work after it exits though is tough because run() calls System.exit. This cleans up uses of System.err and System.exit so that local versions err,exitCodeHandler are always used, and allows overriding exitCodeHandler in non-test mode. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130312217
- Loading branch information
Showing
2 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters