diff options
Diffstat (limited to 'bazel/jar.bzl')
-rw-r--r-- | bazel/jar.bzl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bazel/jar.bzl b/bazel/jar.bzl index b4de3623..c37b9d49 100644 --- a/bazel/jar.bzl +++ b/bazel/jar.bzl @@ -21,6 +21,7 @@ def _strip_jar(ctx): args.add(ctx.file.jar) args.add(out_jar) args.add_all(ctx.attr.paths_to_strip) + args.add_all(ctx.attr.paths_to_keep, format_each = "+%s") ctx.actions.run( outputs = [out_jar], inputs = [ctx.file.jar], @@ -31,8 +32,6 @@ def _strip_jar(ctx): return [ DefaultInfo( files = depset([out_jar]), - # Workaround for https://github.com/bazelbuild/bazel/issues/15043. - runfiles = ctx.runfiles(files = [out_jar]), ), coverage_common.instrumented_files_info( ctx, @@ -49,6 +48,7 @@ strip_jar = rule( allow_single_file = [".jar"], ), "paths_to_strip": attr.string_list(), + "paths_to_keep": attr.string_list(), "_jar_stripper": attr.label( default = "//bazel/tools/java:JarStripper", cfg = "exec", |