Fix some build cache interaction issues in AndroidResourceRule.

Summary:
(1) `AndroidResourceRule` was writing its output to `buck-out/bin`
instead of `buck-out/gen`. This was causing the following check
in `AbstractCachingBuildRule` to fail:

```
if (pathToOutputFile != null && pathToOutputFile.startsWith(BuckConstant.GEN_DIR)) {
  String prefix = BuckConstant.GEN_DIR + '/' + getBuildTarget().getBasePathWithSlash();
  buildInfoRecorder.recordArtifact(pathToOutputFile.substring(prefix.length()));
}
```

After fixing this for `AndroidResourceRule`, I manually inspected the
`getPathToOutputFile()` method in all build rules, and verified that
if a non-null value was returned, it started with `buck-out/gen`.

(2) `AndroidResourceRule` had two fields that were not being included in its RuleKey.

Test Plan: Sandcastle builds.
1 file changed
tree: 1bd16bdeabe998cdbc2e5d6bd511b2082c52a807
  1. .idea/
  2. bin/
  3. config/
  4. docs/
  5. lib/
  6. pmd/
  7. scripts/
  8. src/
  9. test/
  10. testdata/
  11. third-party/
  12. .buckconfig
  13. .classpath
  14. .gitignore
  15. .project
  16. buck.iml
  17. build.xml
  18. DEFS
  19. LICENSE
  20. README.md
README.md

Buck

Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.

Installation

To build Buck, run the following:

git clone git@github.com:facebook/buck.git
cd buck
ant
./bin/buck --help

License

Apache License 2.0