bash-completion icon indicating copy to clipboard operation
bash-completion copied to clipboard

Enable .java Filename Completion for java Command

Open jiri-pejchal opened this issue 9 months ago • 0 comments

Description

Enhance the bash completion scripts for the java command to complete filenames with the .java extension.

This enhancement is necessary to support:

  • JEP 330: Launch Single-File Source-Code Programs
  • JEP 458: Launch Multi-File Source-Code Programs

which allows the java launcher to run a program supplied as a single file of Java source code:

java HelloWorld.java

jiri-pejchal avatar May 20 '24 14:05 jiri-pejchal