You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jh...@apache.org on 2015/02/23 09:52:34 UTC

[2/3] ant git commit: Example derived from the example in the java source.

Example derived from the example in the java source.


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/931c004a
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/931c004a
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/931c004a

Branch: refs/heads/master
Commit: 931c004a55f64359322e47d10e1b66718ccca731
Parents: c848f9a
Author: Jan Matèrne <jh...@apache.org>
Authored: Mon Feb 23 08:54:52 2015 +0100
Committer: Jan Matèrne <jh...@apache.org>
Committed: Mon Feb 23 08:54:52 2015 +0100

----------------------------------------------------------------------
 manual/Tasks/propertyfile.html | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/931c004a/manual/Tasks/propertyfile.html
----------------------------------------------------------------------
diff --git a/manual/Tasks/propertyfile.html b/manual/Tasks/propertyfile.html
index 7450c0a..e4030f8 100644
--- a/manual/Tasks/propertyfile.html
+++ b/manual/Tasks/propertyfile.html
@@ -228,5 +228,22 @@ Concatenation of strings :</p>
 <p>Each time called, a &quot;.&quot; will be appended to &quot;progress&quot;
 </p>
 
+<p>Pumps the project version to the next minor version (increase minor and set path=0):
+<blockquote><pre>&lt;target name="nextMinorVersion"&gt;
+   &lt;property
+     name="header"
+     value="##Generated file - do not modify!"/&gt;
+   &lt;propertyfile file="version.properties" comment="${header}"&gt;
+     &lt;entry key="product.build.major"   type="int"  value="3" /&gt;
+     &lt;entry key="product.build.minor"   type="int"  operation="+" /&gt;
+     &lt;entry key="product.build.patch"   type="int"  value="0" /&gt;
+     &lt;entry key="product.build.date"    type="date" value="now" /&gt;
+  &lt;/propertyfile&gt;
+&lt;/target&gt;
+</pre></blockquote>
+After running this target the version changed e.g. from 3.2.2 to 3.3.0.
+</p>
+
+
 </body>
 </html>