C.73 SvnListTask
Prev | Appendix C. Optional tasks | Next

## C.73 SvnListTask

The `SvnListTask` stores the output of a svn list command on a workingcopy or repositoryurl in a property. The result will be stored in an array, one string that is separated by ' | ' (in words: space pipe space) for easy parsing.

Table C.102: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`svnpath` | `String` | Path to Subversion binary | /usr/bin/svn | No
`workingcopy` | `String` | Working copy directory | none | One of the two
`repositoryurl` | `String` | URL of remote repository | none
`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.list | No
`forceCompatible` | `Boolean` | Deprecated: Sets whether to force compatibility with older SVN versions (< 1.2) | `true` | No
`limit` | `Integer` | Limits the number of items to get back from the command | n/a | No
`orderDescending` | `Boolean` | Sets whether to reverse the order of the listed items | `false` | No

### C.73.1 Example

    <svnlist svnpath="/usr/bin/svn" workingcopy="/home/user/svnwc" propertyname="svn.list"/>

    <svnlist svnpath="/usr/bin/svn" repositoryurl="http://svn.example.com/myrepo/tags" orderDescending="true" limit="10" />

The latter example could produce a list of your tags like this:

    revision | author | date         | item
    4028     | tony   | May 19 18:31 | Release_2.9.1.7
    4026     | tony   | May 18 14:33 | Release_2.9.1.6
    4023     | tony   | May 16 15:53 | Release_2.9.1.5
    4018     | tony   | May 13 11:55 | Release_2.9.1.4
    4005     | tony   | Apr 27 12:09 | Release_2.9.1.3
    ...

Prev | Up | Next
C.72 SvnLastRevisionTask | Home | C.74 SvnLogTask