C.84 VersionTask
Prev | Appendix C. Optional tasks | Next

## C.84 VersionTask

The `VersionTask` increments a three-part version number from a given file and writes it back to the file. The resulting version number is also published under supplied property.

The version number in the text file is expected in the format of Major.Minor.Bugfix (e.g. 1.3.2).

Table C.114: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`releasetype` | `String` | Specifies desired version release (Major, Minor or Bugfix) | n/a | Yes
`file` | `String` | File containing three-part version number to increment | n/a | Yes
`property` | `String` | Property which contains the resulting version number | n/a | Yes

### C.84.1 Example

    <version releasetype="Major" file="version.txt" property="version.number"/>

Prev | Up | Next
C.83 UnzipTask | Home | C.85 WikiPublishTask