C.71 SvnInfoTask
Prev | Appendix C. Optional tasks | Next

## C.71 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.100: 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.info | No
`element` | `String` | Sets whether to store actual last changed revision of the directory/file mentioned | url | No
`subelement` | `String` | Sets whether to force compatibility with older SVN versions (< 1.2) | none | No

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

Prev | Up | Next
C.70 SvnExportTask | Home | C.72 SvnLastRevisionTask