Ant Script Library: asl-release.xml

Overview

asl-release.xml contains properties and targets that can be used as a procedure to create a versioned releasable artifact from a software configuration management (SCM) system.

This is a generic release module, and it doesn't explicitly import any SCM modules. All it requires is that one of the existing SCM modules (or a new module that supports a specific set of macros).

In this module, running the release target performs the following steps:

Properties

Name Default Value Description
release.version (not set) The version of this release. The value of this property affects the default tag that will be used, as well as the generated file names
release.tag ${ant.project.name}-${release.version} The name that will be used to tag the code in the SCM system
release.workspace ${common.target-dir}/release/${release.version} The directory where the tagged code will be exported and packaged
release.buildfile-name build.xml The name of the build script to invoke in the release workspace
release.buildfile-path ${release.workspace}/${release.buildfile-name} The path of the build script to invoke in the release workspace

Targets

release

This is an empty target, that contains dependencies upon the other targets in the following order: release-tag, release-compile, release-package.

release-tag

Tags the code in the SCM system.

release-export

Exports the code from the SCM system to a clean release workspace

release-compile

Compiles the code in the release workspace

release-package

Packages the code in the release workspace.


Is there a problem or mistake on this page? Do you want to contribute some changes? Send me an email at joe@exubero.com.