1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-06 07:36:20 +02:00

52552: newer Java supports passing source files directly to java

This commit is contained in:
Oliver Kiddle 2024-02-22 19:07:01 +01:00
parent 6b21e5c0e2
commit 40d5200c8b
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2024-02-22 Oliver Kiddle <opk@zsh.org>
* 52552: Completion/Unix/Command/_java: newer Java supports
passing source files directly to java
2024-02-20 Bart Schaefer <schaefer@zsh.org>
* 52559: Doc/Zsh/builtins.yo, Doc/Zsh/mod_private.yo,

View File

@ -82,7 +82,10 @@ java)
'(- 1)-X-[non-standard java option]:option' \
'(- 1)-jar[specify a program encapsulated as jar]:jar:_files -g \*.jar\(-.\)' \
'-splash\:-[show splash screen with specified image]:image:_files' \
'(-):class:_java_class -m main ${(kv)opt_args[(i)(-classpath|-cp)]}' \
'--source=[set the version of the source in source-file mode]:version' \
'(-):arg: _alternative
"classes\:class\:{ (( ! $+opt_args[--source] )) && _java_class -m main ${(kv)opt_args[(i)(-classpath|-cp)]} }"
"files\:source file\:_files -g \*.java\(-.\)"' \
'*::args:= _normal' \
&& return 0
;;