0a96bb15779e8dad3586f77582f58e987b4c265a
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #2094 from frantzmiccoli/phing-fix
Phing plugin improvment
Diff
1diff --git a/plugins/phing/phing.plugin.zsh b/plugins/phing/phing.plugin.zsh
2index 795f1db852874932e0331bb5bcb9e14ba59bdd50..1f022047c1bbe71990684a4e67ac247ffb970eb5 100644
3--- a/plugins/phing/phing.plugin.zsh
4+++ b/plugins/phing/phing.plugin.zsh
5@@ -1,13 +1,13 @@
6 _phing_does_target_list_need_generating () {
7 [ ! -f .phing_targets ] && return 0;
8- [ .phing_targets -nt build.xml ] && return 0;
9+ [ build.xml -nt .phing_targets ] && return 0;
10 return 1;
11 }
12
13 _phing () {
14 if [ -f build.xml ]; then
15 if _phing_does_target_list_need_generating; then
16- phing -l |grep -v ":$" |grep -v "^-*$" > .phing_targets
17+ phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}' > .phing_targets
18 fi
19 compadd `cat .phing_targets`
20 fi