phing

Copy a whole directory with phing

女生的网名这么多〃 提交于 2019-11-29 03:23:01
问题 Does anyone know if its possible to use phing to copy an entire folder with files and sub folders (joomla core download) to another folder, but without the .svn folders. I have downloaded joomla using SVN, and I want to export it to my joomla dev folder using phing, without the need to have to list every single file type. My plan is to use this to keep my dev updated from the trunk. I know how to exclude But cannot find anyway to include everything without listing every file, or trying to

How to generate changelog: git log since last Hudson build?

痞子三分冷 提交于 2019-11-28 20:38:00
问题 I'm using Phing to do post build tasks in Hudson. I want to generate changelog containing all commits since last successful Hudson build. But looks like neither Hudson nor Git plugin for Hudson does not provide %last_build_time% variable. This would be satisfying solution, (but how to get the time?): git log --pretty="%s" --since="%last_build_time%" The only way I see for now is extracting it from the job xml file, but I do not know if it is possible with Phing. How do you generate your

How To Deploy Your PHP Applications Correctly?

主宰稳场 提交于 2019-11-28 16:20:42
问题 How to correctly deploy applications from development to production and how to deal with multiple site configurations. All my development are done thru svn located at var/svn/myapp/trunk and the actual production code is in /var/www/myapp. I check out the latest code to my local machine into a directory called "myapp_latest_svn". I have site and location specific code in my main settings.php, which has H_PATH = 'http://myapp.com' & db config settings for db_host, db_user_name and db_password

学习PHP精粹,编写高效PHP代码之质量保证

孤者浪人 提交于 2019-11-27 13:19:09
一、使用静态分析工具测量质量 我们用静态分析测量代码而不运行它。实际上,我们将这些工具用于评估代码、读取文件、衡量它所写的要素。使用这些工具,可以帮助我们对代码库有一个完整的层次化的认识,甚至在代码库变得更大、更复杂的时候也能掌握。 静态分析工具是项目过程中的一个关键组成部分,但是,只有定期使用它们,并以理想的方式进行每一次提交,静态分析工具才真正显示出价值。这些工具涵盖了代码的所有方面,从计数类和计算行数,到识别哪里有提示使用复制和粘贴的类似代码段。然后我们来看看静态分析工具在代码质量中两个特别关键的问题上如何帮助我们:编码标准和文档。 1、phploc phploc: https://github.com/sebastianbergmann/phploc PHP代码行(phploc)可能并不是一个非常有趣的静态分析工具,但它确实给了我们一些有趣的信息,特别是随着时间的推移当我们反复运行它的时候。phploc提供项目拓扑结构以及尺寸的相关信息。 例如测试一个标准的WordPress版本,我们只需使用如下命令: $ phploc wordpress 2、phpcpd phpcpd: https://github.com/sebastianbergmann/phpcpd PHP复制粘贴器(phpcpd)看起来是一个在代码中寻找类似模式的工具