Skip to Content

<platformConfiguration>

Scope: PDE Projects

Description

The platformConfiguration type can be used to define a PDE platform configuration. Platform configurations are used in conjunction with target platforms. They define the system platform to resolve a given target platform for. As the default the system configuration of the machine where the ant4eclipse build is running is used. If you want to execute cross-platform build, you have to specify the platform configuration explicitly.

You can use the platform configuration within the ant4eclipse tasks by refering to it with the platform configuration id.

Arguments

The platformConfiguration type provides the following arguments:

Argument Description Required
id An id that can be used to reference this platform definition later in your buildfile yes
windowingSystem the windowing system (e.g. 'win32', 'gtk') yes
operatingSystem the operating system (e.g. 'win32', 'linux') yes
architecture the architecture (e.g. 'x86') yes

Example usage

The following example creates a platform configuration. The defintion can be referenced via it's id 'win32.win32.x86':

<project name="..." default="...">
 
  <ant4eclipse:platformConfiguration id="win32.win32.x86"
                                     windowingSystem="win32"
                                     operatingSystem="win32"
                                     architecture="x86" />
 
</project>