From 931c004a55f64359322e47d10e1b66718ccca731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mat=C3=A8rne?= Date: Mon, 23 Feb 2015 08:54:52 +0100 Subject: [PATCH] Example derived from the example in the java source. --- manual/Tasks/propertyfile.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/manual/Tasks/propertyfile.html b/manual/Tasks/propertyfile.html index 7450c0a4b..e4030f89d 100644 --- a/manual/Tasks/propertyfile.html +++ b/manual/Tasks/propertyfile.html @@ -228,5 +228,22 @@ Concatenation of strings :

Each time called, a "." will be appended to "progress"

+

Pumps the project version to the next minor version (increase minor and set path=0): +

<target name="nextMinorVersion">
+   <property
+     name="header"
+     value="##Generated file - do not modify!"/>
+   <propertyfile file="version.properties" comment="${header}">
+     <entry key="product.build.major"   type="int"  value="3" />
+     <entry key="product.build.minor"   type="int"  operation="+" />
+     <entry key="product.build.patch"   type="int"  value="0" />
+     <entry key="product.build.date"    type="date" value="now" />
+  </propertyfile>
+</target>
+
+After running this target the version changed e.g. from 3.2.2 to 3.3.0. +

+ +