C.81 SvnInfoTask

The SvnInfoTask parses the output of the 'svn info --xml' command and extracts one specified element (+ optional sub element) from that output.

Table C.107: 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.infoNo
elementStringSets whether to store actual last changed revision of the directory/file mentionedurlNo
subelementStringSets whether to force compatibility with older SVN versions (< 1.2)noneNo
configOptionStringOverride subversion's config optionn/aNo

C.81.1 Example

<svninfo
   svnpath="/usr/bin/svn"
   workingcopy="/home/user/svnwc"
   element="url"
   propertyname="svn.url"/>
<svninfo
   repositoryurl="http://svn.phing.info/"
   element="commit"
   subelement="author"
   propertyname="svn.author"/>