Ant provides a script that provides command-line completion (complete-ant-cmd.pl), but this script is not activated when the Ant package is installed. Other packages register their bash completion scripts automatically under /etc/bash_completion.d/
There is ant completion support in the bash-completion package, which provides /etc/bash_completion.d/ant. Arguably the support should be moved into the ant package. Cheers, Marcus