Substring

The substring updater class extracts a portion of a version number based on start and length parameters and returns the value.

<version>
  <major></major>
  <minor></minor>
  <build mode="concat">
    <fixed value="6" />
    <substring start="1" />
  </build>
  <revision></revision>
</version>

In the example shown above, the build component will be set to 6 followed by the existing build number, excluding the first digit. The substring updater class also supports child updater classes.

Attributes

Attribute Description
start The zero-based start index to begin taking digits.
length The maximum number of digits to take.
mode Defaults to concat. (See Configuration)

Last edited Jan 3, 2013 at 7:53 AM by trwolfe, version 1

Comments

No comments yet.