|author||Michael Bolin <firstname.lastname@example.org>||Fri Nov 08 23:05:28 2013 -0800|
|committer||Michael Bolin <email@example.com>||Tue Nov 12 17:53:49 2013 -0800|
Modify BuildFileToJsonParser to use Gson's streaming parser. Summary: Instead of using our hand-tuned streaming parser, use the default one in Gson. This also enables us to parse arbitrary JSON structures instead of only arrays of arrays of primitives. This changes `BuildFileToJsonParser` to take `isServerMode` as a constructor param so that we are explicit. Despite what the comment on `BuildFileToJsonParser#isServerMode` says, I don't believe that we can use "regular mode" going forward. That is, because the output from `buck.py` includes an `__includes` entry, we cannot read a single JSON object in isolation because there may be context from the `__includes` entry that it needs. Test Plan: Sandcastle builds.
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone firstname.lastname@example.org:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0