Modified VersionTask to only get a single number incrementing for displaying build number.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
BuildnumberTask.php
README

README

<h2>BuildnumberTask</h2>

<p>The BuildnumberTask increments a number from a given file and writes it back to the file. The resulting number is also published under supplied property.</p>

<h3>Examples</h3>

<pre><version releasetype="Major" file="version.txt" property="version.number"/></pre>
<h3>Attributes</h3>
<table>
      <thead>
        <tr>
          <th>Name</th>
          <th>Type</th>
          <th>Description</th>
          <th>Default</th>
          <th>Required</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>file</td>
          <td>String</td>
          <td>File containing three-part version number to increment</td>
          <td>n/a</td>
          <td>Yes</td>
        </tr>
        <tr>
          <td>property</td>
          <td>String</td>
          <td>Property which contains the resulting version number</td>
          <td>n/a</td>
          <td>Yes</td>
        </tr>
      </tbody>
    </table>