Bug 221883 - Need option to specify compliance level
Summary: Need option to specify compliance level
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks: 249386 281017
  Show dependency tree
 
Reported: 2008-03-07 11:50 EST by Andrew Overholt CLA
Modified: 2022-11-17 10:19 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Overholt CLA 2008-03-07 11:50:56 EST
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.
Comment 1 Andrew Overholt CLA 2008-03-07 11:59:58 EST
If I add "compilerarg value="-1.5" along with the source=1.3 target=1.2, it works via ant.
Comment 2 Andrew Niefer CLA 2008-03-12 14:06:16 EDT
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
Comment 3 Andrew Niefer CLA 2008-04-23 15:57:45 EDT
Use this bug to add the ability to set the compliance level.
Comment 4 Lars Vogel CLA 2018-12-03 09:11:07 EST
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.
Comment 5 Lars Vogel CLA 2018-12-03 09:11:56 EST
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.
Comment 6 Eclipse Genie CLA 2020-11-26 15:30:35 EST
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.
Comment 7 Eclipse Genie CLA 2022-11-17 10:19:12 EST
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.