Raise property value by 1 in Ant builder, set pattern

south-man(32)
Published in
#ant
Words
87
Reading
1 min
Listen
Play
8y

If you want to raise the property value by 1 in the Ant builder, you can use the entry tag as shown below. You will find a variable named project.version and upload it one by one.

< entry key = "project.version" type = "int" operation = "+" default = "1" pattern = "0" />

If you do not set pattern = "0" here, basically, if the value goes beyond 1,000, you will be given a comma.
I did not insert pattern = "0" in the case of me, so the version value contains non-numeric characters, so the screen does not appear and an error occurs.

Raise property value by 1 in Ant builder, set pattern | Ecency