Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: java completion update - javac and serialver



Here's the beginning of an update of _java for JDK1.4.x

Regards,
Doug

Index: Completion/Unix/Command/_java
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_java,v
retrieving revision 1.11
diff -u -r1.11 _java
--- Completion/Unix/Command/_java	25 Jun 2003 09:03:06 -0000	1.11
+++ Completion/Unix/Command/_java	19 Jul 2003 08:14:11 -0000
@@ -1,4 +1,4 @@
-#compdef javac java javadoc appletviewer jar jdb javah javap extcheck rmic rmiregistry rmid serialvar native2ascii keytool jarsigner policytool
+#compdef javac java javadoc appletviewer jar jdb javah javap extcheck rmic rmiregistry rmid serialver native2ascii keytool jarsigner policytool
 
 local expl tmp jdb_args jar_cmd match basedir ret=1
 local curcontext="$curcontext" state line jf
@@ -10,17 +10,18 @@
 javac)
   _arguments -C \
     '-g-[generate debugging information]:debug:->debug' \
-    '-O[optimize]' \
-    '-nowarn[suppress warnings]' \
-    '-verbose[print verbose messages]' \
-    '-deprecation[print uses of deprecated APIs]' \
-    '-classpath[specify path for user class files]:class path:->classpath' \
-    '-sourcepath[specify path for source files]:source path:->sourcepath' \
-    '-bootclasspath[specify path for bootstrap class files]:bootstrap class path:->bootstrapclasspath' \
-    '-extdirs[specify directories for extensions]:extensions directories:->extdirs' \
-    '-d[specify destination directory]:directory:_files -/' \
-    '-encoding[specify character encoding for source files]:encoding:->encoding' \
+    '-nowarn[generate no warnings]' \
+    '-verbose[output messages about what the compiler is doing]' \
+    '-deprecation[output source locations where deprecated APIs are used]' \
+    '-classpath[specify where to find user class files]:class path:->classpath' \
+    '-sourcepath[specify where to find input source files]:source path:->sourcepath' \
+    '-bootclasspath[override location of bootstrap class files]:bootstrap class path:->bootstrapclasspath' \
+    '-extdirs[override location of installed extensions]:extensions directories:->extdirs' \
+    '-d[specify where to place generated class files]:directory:_files -/' \
+    '-encoding[specify character encoding used by source files]:encoding:->encoding' \
+    '-source[provide source compatibility with specified release]:release:(1.3 1.4)' \
     '-target[specify VM version]:release:(1.{1..4})' \
+    '-help[print a synopsis of standard options]' \
     '*:java source file:_files -g \*.java' && return 0
   ;;
 
@@ -200,9 +201,11 @@
     '-stop[stop rmid]:' && return 0
   ;;
        
-serialvar)
+serialver)
   _arguments \
-    '-show[display user interface]' && return 0
+    '-classpath[specify where to find user class files]:class path:->classpath' \
+    '(*)-show[display user interface]' \
+    '(-show)*:class:_java_class ${(kv)opt_args[(i)-classpath]}' && return 0
   ;;
 
 native2ascii)



Messages sorted by: Reverse Date, Date, Thread, Author