[Solved] Compiler level not applied automatically [message #1758544] |
Wed, 29 March 2017 17:04  |
Eclipse User |
|
|
|
Without deep prior knowledge, and a couple of hours of reading tutorials and browsing the forum etc I've managed to define a project setup and it almost all just works. So thanks for a great tool and extensive online info and examples!
The setup includes a number of workspace preferences (e.g. customized java code formatter, compiler level etc), dynamic working sets, a workspace JRE 1.7 while using 1.8 for the Neon installation itself etc.
I've updated just before, to the latest Eclipse Installer 1.7.0 build 2932.
Everything works fine form start to finish, except :
1. the compiler level 1.7 is not set, it sticks to 1.8 (on the configured JRE 1.7)
2. in the package explorer the toplevel is not set directly to working sets, I need to do that still manually (will describe that in a separate post)
For the compiler level, I've used the preferences recorder to capture the switch to 1.7. I've tried to store that in 1 project-wide preferences section, and alternatively within the trunk stream (SVN lingo), as we'll probably evolve to having different java levels for different branches in the future. In both cases the level is not applied during the startup tasks, while the other prefs are correctly applied.
The setup model is in attach (just disabled the link to our SVN repo), and in this shot :

When looking at the triggered tasks in the started installation (Help > Perform setup tasks) it shows (I think) that the preferences were indeed not applied. I can then trigger that manually and it goes fine then.

What could cause this, i.e. that they are not set directly during the first installation?
thanks!
erwin
[Updated on: Thu, 30 March 2017 10:51] by Moderator
|
|
|
|
|
|
|
|
|
Re: Compiler level not applied automatically [message #1758658 is a reply to message #1758614] |
Fri, 31 March 2017 06:25  |
Eclipse User |
|
|
|
Yes indeed, very nice approach to manage formatter settings!
Which is what I was doing without looking at the detailed contents of that profile.
I would not expect compiler level settings to be part of that, as they are nowhere in the formatter configuration panels...
When just doing a formatter export (outside of any Oomph handling, directly from the formatter preferences pages) I see that it also exports the 1.8 levels i.o. the 1.7 that I have configured under the Java>Compiler prefs. So there must be some issue in JDT formatter exporting or so.
thanks again for Oomph and your fast support reactions,
erwin
|
|
|
Powered by
FUDForum. Page generated in 0.30484 seconds