Bug 33192 - Need more javac options in build.xml files
Summary: Need more javac options in build.xml files
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0   Edit
Assignee: PDE-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 22297 29070 31144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-26 02:55 EST by Rob Hughes CLA
Modified: 2003-05-13 16:04 EDT (History)
4 users (show)

See Also:


Attachments
This patch add support for items 1 and 3. (4.58 KB, patch)
2003-02-27 23:12 EST, Rob Hughes CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Hughes CLA 2003-02-26 02:55:13 EST
The javac options added for bug 32177 is a good start, however 3 more options 
should also be supported.
1:  source{1.3|1.4} - This option is manditory as the compiler will not accept 
code with assertions without 1.4 being specified as the source release.
2:  debuglevel{lines|vars|source} - It would be nice to be able to specify 
which debug info is included.
3:  target{1.1|1.2|1.3|1.4} - This is useful especially if you are compiliing 
with 1.4 and need it to run on eariler versions as the default target for 1.4 
will create a class version that is incompatible with eariler version of the 
jvm.
Comment 1 Rob Hughes CLA 2003-02-27 23:12:38 EST
Created attachment 3767 [details]
This patch add support for items 1 and 3.
Comment 2 Rob Hughes CLA 2003-02-27 23:13:24 EST
I'm not really sure that support for item 2 is necessary.
Comment 3 Pascal Rapicault CLA 2003-02-28 08:51:13 EST
In javac ant task a build.compiler file can be used to specify the compiler you 
want to use.
Do you know it also supports parameters for source version, bin version, etc.
Comment 4 Rob Hughes CLA 2003-02-28 16:20:17 EST
Please direct me to the ant documentation on this as I can't find any 
reference to a build.compiler file, only the property which is used to 
specifiy the compiler to use.

Also I do not understand why you wouldn't want to add support for at least the 
source attibute.  Ideally the default source value should be picked up from 
the jdt compiler settings, as that is what being used to compile the files 
from within eclipse.  Performing any type of automated build process is 
impossible without tweaking the build files to target 1.4.  This can get 
fairly tedious with 20+ plugins.  With the build files being provided as the 
way to build plugin projects they should be able to work from within eclipse 
and from ant without any modifications.
Comment 5 DJ Houghton CLA 2003-05-13 15:05:10 EDT
Fixed in local repository.
Code from local repository merged into dev.eclipse.org.
Closing.
Comment 6 DJ Houghton CLA 2003-05-13 15:41:48 EDT
*** Bug 22297 has been marked as a duplicate of this bug. ***
Comment 7 DJ Houghton CLA 2003-05-13 16:01:42 EDT
*** Bug 29070 has been marked as a duplicate of this bug. ***
Comment 8 DJ Houghton CLA 2003-05-13 16:04:43 EDT
*** Bug 31144 has been marked as a duplicate of this bug. ***