summaryrefslogtreecommitdiff
path: root/java/plugin_test.go
diff options
context:
space:
mode:
author Dan Willemsen <dwillemsen@google.com> 2021-06-30 01:30:46 -0700
committer Dan Willemsen <dwillemsen@google.com> 2021-07-12 21:46:02 -0700
commit64e61e1a6456bb217acbbc2852dbaa01b30c9d88 (patch)
treedd369d55769099c35ef734c08ca506f103b18407 /java/plugin_test.go
parent1c19b81e3d4a482eced000c3aaa67bb325e101a5 (diff)
go2bp: Add -limit and -skip-tests to more easily limit imported modules
I wrote these flags primarily for build-tools:external/kythe, where we only use a subset of the Go packages defined in the project. -limit allows defining the entry points to keep in the Android.bp, and the utput will omit everything except those entry points and their dependencies. This allows the kythe Android.gen.bp file to drop from 195 modules to 31 using two flags, without having to manually exclude the other 160 packages. -skip-tests does as you'd expect, though ideally it wouldn't be necessary. We didn't import all of the test-only dependencies for kythe into the source tree, so we're not able to build them. Change-Id: I49e9f12dac53a74c6e05725ee41fb7c0ed8b0cbb
Diffstat (limited to 'java/plugin_test.go')
0 files changed, 0 insertions, 0 deletions