Increment

The increment updater class offsets the existing version component number by a user-specified value. Alternatively, the offset value can be calculated using a collection of sub-updater classes.

<version>
  <major></major>
  <minor></minor>
  <build><increment value="1" /></build>
  <revision></revision>
</version>

The example above will increment the build number by a value of 1 each time it is fired. Instead of using the value attribute, the increment updater class is also capable of having its own set of updater classes whose values will be summed in order to calculate the value that will be used to offset the version component.

<version>
  <major></major>
  <minor></minor>
  <build>
    <increment>
      <fixed value="5" />
      <fixed value="2" />
    </increment>
  </build>
  <revision></revision>
</version>

In the configuration described above, the increment class will first sum its child updater classes to achieve a total of 7. The current build component of the version number will then be incremented by 7.

Last edited Jan 3, 2013 at 6:51 AM by trwolfe, version 1

Comments

No comments yet.