HomeUser GuideDevelopmentDownloadLegal

Development: buildproperty

Description

Task to set Ant properties according to a build information file created using the task buildinfo.

This task sets the following properties (where <prefix> is the prefix you specified as parameter "propertyprefix", see below):

  • <prefix>.date timestamp in the versioning file.
  • <prefix>.version master version number.
  • <prefix>.build build number.

Parameters

This task supports the following parameters.

Note: Most "build..." parameters are the same as in the section element of the buildinfo task.

Attribute Description Required
buildfile Corresponds ot the buildfile attribute of the section element of the buildinfo task. Yes.
buildtype Corresponds ot the type attribute of the section element of the buildinfo task. Yes.
buildmodule Corresponds ot the module attribute of the section element of the buildinfo task. Depends on type.
buildprefix Corresponds ot the prefix attribute of the section element of the buildinfo task. Depends on type.
propertyprefix The Ant property prefix to use. Yes.

Nested Elements

This task does not support any nested elements.

Examples

<buildproperty
  buildfile="mymodule-version.xml"
  buildtype="xml"
  propertyprefix="mymodule-version"
/>

After execution of this task the properties may be accessed in the usual Ant manner, e.g. with ${mymodule-version.date}