ant: handle "extension-point" the same as "target" tag (Petr Kozelka, Alioth: #313105)

This commit is contained in:
David Paleino 2011-05-02 16:29:43 +02:00
parent 0a40e980cb
commit b25abe601d
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,8 @@ bash-completion (2.x)
with a cword+1 argument already present (Debian: #622383)
* Remove --unpack-level from lintian options (Debian: #623680)
* Complete filenames after commands in rrdtool (Debian: #577933)
* ant: handle "extension-point" the same as "target" tag (Petr Kozelka
Alioth: #313105)
[ Freddy Vulto ]
* Improve __reassemble_comp_words_by_ref() to not create words of

View File

@ -47,7 +47,7 @@ _ant()
# some versions of sed complain if there's no trailing linefeed,
# hence the 2>/dev/null
COMPREPLY=( $( compgen -W "$( tr "'\t\n>" "\" \n" < $buildfile | \
sed -ne 's/.*<target .*name="\([^"]*\).*/\1/p' 2>/dev/null )" \
sed -ne 's/.*<\(target\|extension-point\) .*name="\([^"]*\).*/\2/p' 2>/dev/null )" \
-- "$cur" ) )
fi
} &&