bazelbuild / bazelbuild/rules_java
Use @argument files in the Java binary wrapper script
- 主要語言
- 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.
貢獻指南
研究方向
找出 Java 二進位包裝腳本,並閱讀現有用於處理長 classpath 的 manifest-jar 替代方案。將其與 JDK 9 的引數檔案支援進行比較,並確定針對較舊 --javabase 版本的相容性方案;完成標準是:wrapper 在目標為 JDK 9 時使用引數檔案,並處理所述的舊版本情況。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- build-system
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100