Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
_javaws()
2
{
3
    local cur prev opts base
4
    cur="${COMP_WORDS[COMP_CWORD]}"
5
    prev="${COMP_WORDS[COMP_CWORD-1]}"
6
 
7
    # JavaWs Options
8
    opts="-version -arg -param -property -update -verbose -nosecurity -noupdate -headless -strict -xml -allowredirect -Xnofork -Xignoreheaders -Xoffline -Xtrustnone -jnlp -html -browser -startuptracker -about -viewer -Xclearcache -Xcacheids -license -help -Xtrustall"
9
    if [[ $prev == *"-jnlp" || $prev == *"-html" ]] ; then
10
      COMPREPLY=($(compgen -f -X "!*" -- ${cur}))
11
      if [ -d "$COMPREPLY" ] ; then
12
        COMPREPLY="$COMPREPLY/"
13
      fi
14
      return 0
15
    fi
16
    if [[ $cur == "" ]] ; then
17
      COMPREPLY=($(compgen -W "aa_file_or_url ${opts} zz_file_or_url" -- ${cur}))
18
      return 0
19
    fi
20
    if [[ $cur == "-"* ]] ; then
21
      COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
22
      return 0
23
    else
24
      COMPREPLY=($(compgen -f -X "!*" -- ${cur}))
25
      if [ -d "$COMPREPLY" ] ; then
26
        COMPREPLY="$COMPREPLY/"
27
      fi
28
      return 0
29
    fi
30
}
31
complete -F _javaws javaws