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). Alternatively you can use 'v' as prefix (e.g. v1.3.2).
Table B.77: 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 |
build.version
| No |
property
|
String
| Property which contains the resulting version number |
build.version
| No |
propFile
|
Boolean
| If true , version will be saved using property file
format (i.e. key=value).
|
false
| No |
startingVersion
|
String
| Starting version string, if version file does not exist. |
0.0.0
| No |