mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-18 21:51:02 +02:00
52552: newer Java supports passing source files directly to java
This commit is contained in:
parent
6b21e5c0e2
commit
40d5200c8b
2 changed files with 9 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue