Community
Participate
Working Groups
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.
*** This bug has been marked as a duplicate of 55353 ***