d0610931db7ed27cbd71afe42b627a3edacb000f
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Merge pull request #5233 from donatj/donatj-patch-1
Removes .phing_target generation from phing plugin
Diff
1diff --git a/plugins/phing/phing.plugin.zsh b/plugins/phing/phing.plugin.zsh
2index 1f022047c1bbe71990684a4e67ac247ffb970eb5..d5a2649bf22de555066d9a39037b7d08b2711a43 100644
3--- a/plugins/phing/phing.plugin.zsh
4+++ b/plugins/phing/phing.plugin.zsh
5@@ -1,15 +1,6 @@
6-_phing_does_target_list_need_generating () {
7- [ ! -f .phing_targets ] && return 0;
8- [ build.xml -nt .phing_targets ] && return 0;
9- return 1;
10-}
11-
12 _phing () {
13 if [ -f build.xml ]; then
14- if _phing_does_target_list_need_generating; then
15- phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}' > .phing_targets
16- fi
17- compadd `cat .phing_targets`
18+ compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|grep -v "Warning:"|awk '{print $1}')
19 fi
20 }
21