what can Phing do that Ant can't?

大城市里の小女人 提交于 2019-12-10 01:10:01

问题


I'm doing PHP development and I'm thinking of using one of these. I have both PHP and Java installed on my machine. In theory I could use any of the two.

What are the compelling arguments to pick Phing over Ant?


回答1:


The greatest argument I have in favor of Phing is that it's fully developed in PHP ; which means, at least :

  • You can debug it / submit patches if you want
  • You can develop tasks in PHP
    • including tasks which are specific to your project
    • that can use stuff from your project (I've written a couple of tasks that use functions of Drupal, in a drupal-based project)
    • And, if you are working on a PHP project, your team probably knows PHP well -- while they might not know Java
  • No need to install Java on your servers



回答2:


The main argument (for me) for using Phing when doing PHP development is

  • staying inside the PHP Ecosystem.
  • When using Phing on shared hosts, you can be sure it works when PHP works.
  • And you can easily extend Phing with your own task in PHP.
  • And since it's a PHP tool you will sometimes find it in other applications as well.


来源:https://stackoverflow.com/questions/2502971/what-can-phing-do-that-ant-cant

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!