commit | 3ee7979e21cba0006520881c74788c9be93dbd8c | [log] [tgz] |
---|---|---|
author | Michael Bolin <mbolin@fb.com> | Wed Nov 06 18:07:34 2013 -0800 |
committer | Michael Bolin <mbolin@fb.com> | Tue Nov 12 17:52:55 2013 -0800 |
tree | e133a88e4c8c16d95bcac5df4df48bd1e8973a47 | |
parent | 59759043f66de17140b423a7f11a2d8827b4cbbf [diff] |
Introduce DexJavaLibraryIfItContainsClassFiles Buildable. Summary: `DexJavaLibraryIfItContainsClassFiles` is a `Buildable` that takes the output of a `JavaLibraryRule` and and dexes it, assuming the output of the `JavaLibraryRule` contains `.class` files. It relies on an `AccumulateClassNames` to determine whether there are `.class` files to dex. Once `DexJavaLibraryIfItContainsClassFiles` has the path to the classes file, it uses a `FileExistsAndIsNotEmptyStep` combined with a `ConditionalStep` to make sure that the list of `.class` files is non-empty before running the `DxStep` because `dx` will fail if it is run on input that does not contain any `.class` files. 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 git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0