The SvnLastRevisionTask
stores the number of the last revision of
a Subversion workingcopy in a property.
Table C.108: Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
svnpath | String | Path to Subversion binary | /usr/bin/svn | No |
workingcopy | String | Working copy directory | none | Yes, or repositoryurl |
repositoryurl | String | URL of remote repository | none | Yes, or workingcopy |
username | String | A username used to connect to the SVN server | none | No |
password | String | A password used to connect to the SVN server | none | No |
propertyname | String | Name of property to use | svn.lastrevision | No |
lastChanged | Boolean | Sets whether to store actual last changed revision of the directory/file mentioned | false | No |
configOption | String | Override subversion's config option | n/a | No |
<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"/>