Targets

org.eclipse.pde.core.targets

3.2

An extension point to define and register target definitions. PDE gives the user the ability to choose and switch between targets. The main content of a target resides in a .target file. Among other things, this file contains a list of plug-ins and/or features, the target environment, execution environment and launching arguments.

<!ELEMENT extension (target+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT target (description?)>

<!ATTLIST target

id         CDATA #REQUIRED

name       CDATA #REQUIRED

definition CDATA #REQUIRED>


<!ELEMENT description (#PCDATA)>

a human-readable description of this target



The following is an example of the targets extension:
  

<extension point =

"org.eclipse.pde.core.targets"

>

<target id=

"org.eclipse.pde.core.rcpTarget"

name=

"Eclipse RCP"

path=

"targets/rcp.target"

/>

</extension>

In the example above, the name and id of the target are declared in the plugin.xml, but its content is store in a targets/rcp.target located in the contributing plug-in.
The .target file must be created via File > New > Other... > Plug-in Development > Target Definition and must comply with the grammar of that file.

No Java code is requied for this extension point.

The org.eclipse.pde.core plug-in provides two extensions.