NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# 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`releasetype``String`Specifies desired version release (Major, Minor or Bugfix)n/aYes`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`Set to true, if version should be saved as property file.`false`No`startingVersion``String`Starting version string, if version file does not exist.`0.0.0`No C.112.1 Example `<version releasetype="Major" file="version.txt" property="version.number"/>`