Fix stale mojom-generated Java problems with gyp builds

This causes any gyp targets which use the mojom bindings generator
to regenerate all outputs when any of the input mojom files have
changed. In such cases, the Java output directory is first wiped
out.

This avoids problems with stale mojom-generated Java files hanging
around and being compiled by build/android/javac.py, which tries
to build everything in its generated sources location.

BUG=461622

Review URL: https://codereview.chromium.org/958773002

Cr-Commit-Position: refs/heads/master@{#318190}
2 files changed