bazelbuild / bazelbuild/rules_java

Use @argument files in the Java binary wrapper script

Aperta
#331 21 commenti 0 reazioni 0 assegnatari Vedi su GitHub
P3
Lingua principale
Starlark
Stelle
103
Fork
102
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.