I want to build an Eclipse RCP application with a PDE headless build. When I run the Ant script of the build it fails with the following error message:
failed to create task or type eclipse.generateFeature
Cause: The name is undefined.
I found the solution in the discussion here: It is important to run the Ant script of the build within the same JRE as the workspace because otherwise the PDE Ant tasks cannot be found:
Right click on the Ant script (build.xml) > Run As > Ant Build … > JRE tab of the wizard > switch to option: 'Run in the same JRE as the workspace'