C.82 SvnLastRevisionTask

The SvnLastRevisionTask stores the number of the last revision of a Subversion workingcopy in a property.

Table C.108: Attributes

NameTypeDescriptionDefaultRequired
svnpathStringPath to Subversion binary/usr/bin/svnNo
workingcopyStringWorking copy directorynoneYes, or repositoryurl
repositoryurlStringURL of remote repositorynoneYes, or workingcopy
usernameStringA username used to connect to the SVN servernoneNo
passwordStringA password used to connect to the SVN servernoneNo
propertynameStringName of property to usesvn.lastrevisionNo
lastChangedBooleanSets whether to store actual last changed revision of the directory/file mentionedfalseNo
configOptionStringOverride subversion's config optionn/aNo

C.82.1 Example

<svnlastrevision
   svnpath="/usr/bin/svn"
   workingcopy="/home/user/svnwc"
   propertyname="svn.lastrevision"/>
<svnlastrevision
   svnpath="C:/Subversion/bin/svn.exe"
   workingcopy="C:/projects/svnwc"
   propertyname="svn.lastrevision"/>
<svnlastrevision
   svnpath="C:/Subversion/bin/svn.exe"
   repositoryurl="http://svn.phing.info/"
   propertyname="svn.lastrevision"/>