Community
Participate
Working Groups
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.
Created attachment 3767 [details] This patch add support for items 1 and 3.
I'm not really sure that support for item 2 is necessary.
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.
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.
Fixed in local repository. Code from local repository merged into dev.eclipse.org. Closing.
*** Bug 22297 has been marked as a duplicate of this bug. ***
*** Bug 29070 has been marked as a duplicate of this bug. ***
*** Bug 31144 has been marked as a duplicate of this bug. ***