Community
Participate
Working Groups
I'm trying to build pde.build via the PDE Build-generated build.xml file. It fails. I realize that Sun broke source compatibility between 1.4 and 1.5 and this affects PDE Build itself (FeatureWriter -> XMLWriter -> PrintWriter), but how come pde.build builds in the IDE but not with the generated build.xml? I'm also confused by the JDK Compliance settings. PDE Build specifies compliance=1.5, source=1.3, target=1.2. How does this map to build.xml files or is that a limitation of javac options? Thanks.
If I add "compilerarg value="-1.5" along with the source=1.3 target=1.2, it works via ant.
There is a bug here in the jdt compiler: bug 210866 It compiles in the ide because of the compliance=1.5 setting in the project properties. In the headless build, pde.build has no support for specifying the compliance level, so the batch compiler derives it from source/target levels. When building headless with ant, you need to set a 1.4 library to compile against (Set the J2SE-1.4 property in the build configuration to match the execution environment). Or, if you only have the 1.5 libraries, then the best solution is as you have done with the setting the compliance level by passing -1.5
Use this bug to add the ability to set the compliance level.
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. Please reopen, if you plan to provide a fix.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.