phing.plugin.zsh 371 B

12345678910111213141516
  1. _phing_does_target_list_need_generating () {
  2. [ ! -f .phing_targets ] && return 0;
  3. [ .phing_targets -nt build.xml ] && return 0;
  4. return 1;
  5. }
  6. _phing () {
  7. if [ -f build.xml ]; then
  8. if _phing_does_target_list_need_generating; then
  9. phing -l |grep -v ":$" |grep -v "^-*$" > .phing_targets
  10. fi
  11. compadd `cat .phing_targets`
  12. fi
  13. }
  14. compdef _phing phing