diff options
author | Colin Cross <ccross@android.com> | 2017-02-19 19:51:45 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-02-19 19:56:29 -0800 |
commit | 8b82b7ea32d53a5a520a2db784de90d3c8ea2360 (patch) | |
tree | b8d461a3b3b5f040710c2b7a1593062ba341a97d /cmd | |
parent | 6c1ae37599545cd7f4585101bb127fcda4518cfc (diff) | |
download | build_soong-8b82b7ea32d53a5a520a2db784de90d3c8ea2360.tar.gz build_soong-8b82b7ea32d53a5a520a2db784de90d3c8ea2360.tar.bz2 build_soong-8b82b7ea32d53a5a520a2db784de90d3c8ea2360.zip |
increase javac_filter line length limit to 2MB
Some javac wrappers output the entire list of java files being
compiled on a single line, which can be very large, set the maximum
buffer size to 2MB.
Test: pipe the grok build output through soong_javac_wrapper
Change-Id: Ib208461dca02ced4959433b7695ec760dc134468
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/javac_filter/javac_filter.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/javac_filter/javac_filter.go b/cmd/javac_filter/javac_filter.go index 32fcd639..a089acd4 100644 --- a/cmd/javac_filter/javac_filter.go +++ b/cmd/javac_filter/javac_filter.go @@ -54,6 +54,10 @@ func main() { func process(r io.Reader, w io.Writer) error { scanner := bufio.NewScanner(r) + // Some javac wrappers output the entire list of java files being + // compiled on a single line, which can be very large, set the maximum + // buffer size to 2MB. + scanner.Buffer(nil, 2*1024*1024) for scanner.Scan() { processLine(w, scanner.Text()) } |