From: Flanakin M. C C. HQ OSSG/O. <Michael.Flanakin.Ctr@Gunter.Af.Mil> - 2006-01-27 13:49:17
|
I have an XSL file that converts the change log into DHTML. Here're the tasks I run... <property name=3D"project.url" = value=3D"http://svn.repo.com/myrepo" /> <property name=3D"build.revision.start" value=3D"1" /> <property name=3D"build.revision.end" value=3D"HEAD" /> ... <exec program=3D"svn"=20 commandline=3D"log -v -r ${build.revision.start}:${build.revision.end} --xml ${project.url}/trunk" output=3D"doc/changes.xml" /> <style style=3D"SvnLog_to_HTML.xsl"=20 in=3D"${dir.build.doc}/changes.xml"=20 out=3D"${dir.build.doc}/changes.htm" /> I've also attached a sample of the output. This is from rev 74 of a project (rev 73 was the tag for our production release). You'll notice that I specified the trunk in the svn log command. I did this because if I didn't, any updates to branches and/or tags would be displayed. If you want to log to a branch, simply specify that URL instead of the trunk - it'll include changes in the trunk before it was branched off up to the start of the revision. Michael Flanakin -----Original Message----- From: nan...@li... [mailto:nan...@li...] On Behalf Of Henning Eiben Sent: Wednesday, January 25, 2006 7:49 AM To: nan...@li... Subject: Re: [NAnt-users] SVN tasks Simon Thorogood schrieb: > Hi - can anybody point me to a good online resource with samples of using the nantcontrib svn, svn-checkout etc. tasks to implement a continuous build using a subversion repository.=20 >=20 > The nantcontrib docs on this subject are rather brief. Well, I used (for quicke some time) NAnt to do automatic update/builds of a project that was hosted in a subversion repository. Attached you'll find my svn.build file I used to get the lastest code from the repository. I also store the latest revision number in a property called "svn.revision", so I can create a zip file containing the latest build, whose name contains the revision. This way I can keep track of previous builds. |