Description
The getBuildOrder
task computes the order in which projects of a workspace must be built. The task requires either a Team Project Set file containing the projects or a property with a list of project names to be computed. The project set resp. the project names must contain all needed projects. If a project that is referenced by a project listed in the project set or in projectNames is not included, the task will fail. All projects that are needed to compute the build order must exist in the workspace, otherwise the task will fail.
Arguments
The getBuildOrder
task provides the following arguments:
Argument | Description | Required |
---|---|---|
workspaceDirectory | Absolute path of the workspace directory | Either 'workspaceDirectory' or 'workspaceId' has to be specified |
workspaceId | The identifier of a defined workspace (see <workspaceDefinition>) | Either 'workspaceDirectory' or 'workspaceId' has to be specified |
buildOrderProperty | The name of a property that will hold the computed build order | yes |
teamProjectSet | The location of a team project set file that contains the projects | either 'allProject' or 'teamProjectSet' or 'projectNames' has to be specified |
projectNames | A list with names of projects that should be ordered | either 'allProject' or 'teamProjectSet' or 'projectNames' has to be specified |
allWorkspaceProjects | If set to true the build order of all projects in the workspace will be computed. Otherwiseonly those projects are taken into account that are defined either in a team project set file or in the projectNames attribute. |
either 'allProject' or 'teamProjectSet' or 'projectNames' has to be specified |
projectReferenceTypes | Projects can have references of different types. With the projectReferenceTypes you can define, which kind of reference should be taken into account while computing the build order. Currently the following values are possible: jdt, platform. |
no (default: all available reference types) |
Example usage
The following example computes the build order of all the projects contained in the team project set projectSet.psf
:
<getBuildOrder workspace="${workspaceDir}" teamprojectset="projectSet.psf" buildOrderProperty="test" />
- Printer-friendly version
- Login or register to post comments