Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 97512 - [workspace] build.xml generated by PDE does not honor project compiler settings
Summary: [workspace] build.xml generated by PDE does not honor project compiler settings
Status: RESOLVED DUPLICATE of bug 55353
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 11:06 EDT by Dominik Maehl CLA
Modified: 2005-06-02 12:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Maehl CLA 2005-05-31 11:06:33 EDT
I'm quite new to PDE development so I apologize if I got something wrong but
here is my problem:

I have a plug-in which requires java 1.5 (use of generics, etc.). So I
configured my project to be a 5.0 project.

If I now export the plug-in via Export Plug-in in Eclipse everything works fine.
But when I use PDE-Tools-> Create Ant Build File to create a build.xml and try
to build it from outside of Eclipse I get javac complaining about the wrong
source level.

After a quick check of the build.xml I discovered the javacSource and
javacTarget properties which were not set to 1.5 but to 1.3 and 1.2.

This seems to be generated by
org.eclipse.pde.build@org.eclipse.pde.internal.build.builder.ModelBuildScriptGenerator
in which the mentioned values are hard coded.

I've changed both values and also added "-source 1.5" to compilerArgs manually
and everything compiled fine.

FYI I'm starting the build via antRunner.

AFAIK 1.5 is not used internally by Eclipse but it would be nice to have it
fully usable for rich client apps.
Comment 1 Pascal Rapicault CLA 2005-06-02 12:14:17 EDT

*** This bug has been marked as a duplicate of 55353 ***