Updated ant plugin (using ant -p)

Useful when build.xml references other build.xml files
This commit is contained in:
Gauthier Billot 2013-05-17 15:17:43 +02:00
commit f36c3f3b59

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