This commit is contained in:
Gauthier Billot 2015-02-01 03:47:13 +00:00
commit a1e673d62c

View file

@ -7,7 +7,7 @@ _ant_does_target_list_need_generating () {
_ant () {
if [ -f build.xml ]; then
if _ant_does_target_list_need_generating; then
sed -n '/<target/s/<target.*name="\([^"]*\).*$/\1/p' build.xml > .ant_targets
ant -p | grep \^" " | cut -f2 -d" " > .ant_targets
fi
compadd `cat .ant_targets`
fi