summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_ant
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-08-24 19:19:14 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-08-24 19:19:14 +0000
commit043c302261dfee52e54e9a6c42b4ebcc2f7ccd33 (patch)
treedcd922959775f8c5701302c68e4425c285c14465 /Completion/Unix/Command/_ant
parentbc5567c859a074e2559b3c94c08ca1003b543da9 (diff)
downloadzsh-043c302261dfee52e54e9a6c42b4ebcc2f7ccd33.tar.gz
zsh-043c302261dfee52e54e9a6c42b4ebcc2f7ccd33.zip
17577: pass classpath as an option to _java_class
Diffstat (limited to 'Completion/Unix/Command/_ant')
-rw-r--r--Completion/Unix/Command/_ant11
1 files changed, 6 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_ant b/Completion/Unix/Command/_ant
index 717fa9ea4..d33589bc3 100644
--- a/Completion/Unix/Command/_ant
+++ b/Completion/Unix/Command/_ant
@@ -2,8 +2,9 @@
typeset -A opt_args
local buildfile tmp state line curcontext="$curcontext"
-local target='*:target:->target'
-#local CLASSPATH="$ANT_HOME/lib/*.jar"
+local c target='*:target:->target'
+
+c=( $ANT_HOME/lib/*.jar )
if [[ $service = *ANT_ARGS* ]]; then
compset -q
@@ -22,12 +23,12 @@ _arguments -C \
'-debug[print debugging information]' \
'-emacs[produce logging information without adornments]' \
'(-l -logfile)'{-l,-logfile}'[use specified file for log]:logfile:_files' \
- '-logger[the class which is to perform logging]:classname:_java_class' \
- '*-listener[add an instance of class as a project listener]:classname:_java_class' \
+ '-logger[the class which is to perform logging]:classname:_java_class -cp ${(j.:.)c}' \
+ '*-listener[add an instance of class as a project listener]:classname:_java_class -cp ${(j.:.)c}' \
'(-f -file -buildfile -find)'{-f,-file,-buildfile}'[use specified build file]:build file:_files' \
'*-D[specify property with value to use]:property:->property' \
'-propertyfile[load properties from specfied file]:property file:_files' \
- '-inputhandler[specify class which will handle input requests]:class:_java_class' \
+ '-inputhandler[specify class which will handle input requests]:class:_java_class -cp ${(j.\:.)c}' \
'(-f -file -buildfile)-find[search for build file towards the root of filesystem]:build file:(build.xml)' \
$target && return