diff options
author | Diego Wilson <diegowilson@google.com> | 2018-01-30 17:19:37 -0800 |
---|---|---|
committer | Diego Wilson <diegowilson@google.com> | 2018-02-01 17:14:29 -0500 |
commit | 109f353fe9a63b146b9e74a08bbb10bfd3bf46b2 (patch) | |
tree | c03dba19d0e29e35b36bafcdd3acce962b2667c6 | |
parent | 61ebe08ef0132f4df784be476c18dbcf76e16a2c (diff) | |
download | guice-109f353fe9a63b146b9e74a08bbb10bfd3bf46b2.tar.gz |
Avoid writing to source dir while building guice
One of the external/guice build rules uses zip. By default zip
will create a temporary working directory next to the source archive.
Instead of tainting the source directory let's make it use
the standard /tmp directory.
Test: make checkbuild dist tests
Change-Id: I99ad49f12923be3a81f10f511091d8485f74c596
-rw-r--r-- | Android.bp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ genrule { name: "guice_munge_srcjar", out: ["guice_munge.srcjar"], srcs: ["lib/build/munge.jar"], - cmd: "zip $(in) -O $(out) -d MungeTask.java", + cmd: "zip --temp-path $${TMPDIR:-/tmp} $(in) -O $(out) -d MungeTask.java", } genrule { |