I have an XSL file that converts the change log into DHTML. Here're the
tasks I run...

<property name="project.url"          value="http://svn.repo.com/myrepo";
/>
<property name="build.revision.start" value="1" />
<property name="build.revision.end"   value="HEAD" />
...
<exec program="svn" 
 commandline="log -v -r ${build.revision.start}:${build.revision.end}
--xml ${project.url}/trunk"
 output="doc/changes.xml" />
<style style="SvnLog_to_HTML.xsl" 
 in="${dir.build.doc}/changes.xml" 
 out="${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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henning
Eiben
Sent: Wednesday, January 25, 2006 7:49 AM
To: nant-users@lists.sourceforge.net
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. 
> 
> 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.

Attachment: SvnLog_to_HTML.xsl
Description: SvnLog_to_HTML.xsl

 Rev   Author  Date
74 flanakinm 01/09/2006 19:25
+ Added CAR 3 findings document.
 
75 flanakinm 01/12/2006 16:31
+ Renamed view and edit screenshots and removed options screenshot.
 
77 flanakinm 01/13/2006 20:30
+ Added misplaced CAR 3 Findings doc and renamed the existing one to CAR 4 Findings.
 
78 flanakinm 01/24/2006 12:53
+ Updated release numbers for 3.2.2 release and added corrected AddData stored procedure to the new SQL script.
 
79 flanakinm 01/24/2006 20:53
+ Reorganized documentation for future UDT releases - most documentation for the UDT 3.2.1 release will not be required.
 
80 flanakinm 01/26/2006 13:23
+ Included Database Spec within SAD.
 
81 clementc 01/26/2006 13:43
+ Added drop down menu support
 
82 flanakinm 01/26/2006 20:06
+ Removed DNN from the release build.
 

Reply via email to