NAntContrib
Help
Task Reference
<version> |
v0.85-rc1 |
[This is preliminary documentation and subject to change.]
Increments a version number counter from a text file. The resulting version string is written back to the file and entered in a NAnt property defined by prefix + "version".
buildtype determines how the build number is generated:
revisiontype determines how the revision number is generated:
| Attribute | Type | Description | Required |
|---|---|---|---|
| buildtype | string | Algorithm for generating build number. Valid values are "monthday", "increment" and "noincrement". The default is "monthday". | False |
| path | string | Path to the file containing the current version number. The default file is 'build.number' in the project base directory. |
False |
| prefix | string | The string to prefix the property name with. The default is 'sys.'. |
False |
| revisiontype | string | Algorithm for generating revision number. Valid values are "automatic" and "increment". | False |
| startDate | string | Start of project. Date from which to calculate build number. Required if "monthday" is used as buildtype. |
False |
| failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
| if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. |
False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |