mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Updated ant plugin (using ant -p)
Useful when build.xml references other build.xml files
This commit is contained in:
parent
27c6becffd
commit
f36c3f3b59
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue