daily build作为软件开发的最佳实践之一,微软甚至将它称为项目管理的心跳,可见其在软件开发中的重要作用。为什么会有这么高的评价? 除了平常提到的一些显著改进外,主要是因为实现daily build前有一些先决条件,即意味着你至少已经实现下列scm管理:
1.源代码管理
2.单元测试
3.版本管理
4.bug管理
在上述基础上进行的daily build,可以说是软件开发的一种习惯。刚开始可能会有所不适应,但逐渐变为一种习惯后,就离不开了。
daily build现在有很多流行的工具,比如说final builder,支持脚本编写,是很不错的工具。但是没有钱购买工具怎么办,其实简单使用脚本来编写一个批处理工具,来进行daily build,也可以基本实现daily build的功能。下面就已source safe + delphi为例,来实现daily build。
::daily build script ::viery 2004/07/20 ::your project's path in vss set ssproject="$/project1/source" ::your vss username and password set username=viery set password=password ::path to vss command line tool and the vss db you want to use. set vsspath="c:\develop\vss\win32\ss.exe" set ssdir=c:\develop\vss ::path to the directory where you will be keeping the archive set archivepath=c:\project\build ::path to the delphi executable. set delphipath="c:\program files\borland\delphi7\bin\dcc32.exe" ::path to library set delphi="c:\program files\borland\delphi7" ::delphi project name |
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器