C.83 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.109: Attributes

NameTypeDescriptionDefaultRequired
svnpathStringPath to Subversion binary/usr/bin/svnNo
workingcopyStringWorking copy directorynoneOne of the two
repositoryurlStringURL of remote repositorynone
usernameStringA username used to connect to the SVN servernoneNo
passwordStringA password used to connect to the SVN servernoneNo
propertynameStringName of property to usesvn.listNo
limitIntegerLimits the number of items to get back from the commandn/aNo
orderDescendingBooleanSets whether to reverse the order of the listed itemsfalseNo
configOptionStringOverride subversion's config optionn/aNo

C.83.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
...