bazelbuild / bazelbuild/rules_java

Use @argument files in the Java binary wrapper script

未关闭
#331 21 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
P3
主要语言
Starlark
星标
103
派生
102
PR 合并指标
30 天内没有已合并 PR

描述

The Java binary wrapper script works around command line length limits by creating a jar file with a `Class-Path` manifest entry containing the long classpath (related: bazelbuild/bazel#6289).

JDK 9 adds support for flag files using the `@argument-file` syntax, see "java Command-Line Argument Files" in https://docs.oracle.com/javase/9/tools/java.htm.

We should use that instead of the manifest jar hack when targeting JDK 9.

We could back-fill support for that syntax for older --javabase versions by adding logic to the wrapper script.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。