C.72 SvnLastRevisionTask
Prev | Appendix C. Optional tasks | Next

## C.72 SvnLastRevisionTask

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

Table C.101: 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
`forceCompatible` | `Boolean` | Deprecated: Sets whether to force compatibility with older SVN versions (< 1.2) | `false` | No

### C.72.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"/>

Prev | Up | Next
C.71 SvnInfoTask | Home | C.73 SvnListTask