C.112 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.146: Attributes

NameTypeDescriptionDefaultRequired
releasetypeStringSpecifies desired version release (Major, Minor or Bugfix)n/aYes
fileStringFile containing three-part version number to incrementbuild.versionNo
propertyStringProperty which contains the resulting version numberbuild.versionNo
propFileBooleanSet to true, if version should be saved as property file.falseNo
startingVersionStringStarting version string, if version file does not exist.0.0.0No

C.112.1 Example

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