This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253121 - Can't set any JDK as default for whole project-group
Summary: Can't set any JDK as default for whole project-group
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-23 07:50 UTC by pwr
Modified: 2016-03-22 20:03 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pwr 2015-06-23 07:50:10 UTC
It would be nice if you can set a default JDK per project group.
You can already do that with the Maven Installation in the "Properties" of a project group. 
I'd suggest to add "Default JDK" to the Project Group Properties Category-List, if possible.
Comment 1 Tomas Zezula 2015-06-24 13:39:06 UTC
Makes sense.
Currently in j2se project (probably in all ant based projects which are derived from the j2se project) the last used platform is set as a new project platform.
One question: Do you want the Project Group Java Platform be just a platform used when creating the new project or do want it to be reference (when changed the platform od already existing projects in the project group will change to the new one). The second one is more complicated as the Project Group is not a project and cannot be shared, so it cannot be implemented as reference but a project property which is updated when you change it in project gropu.
Comment 2 pwr 2015-06-24 21:51:08 UTC
i think it's enough when the project group java platform is just the default new projects in the group. but this should also work when i open an existing project in that group.

my main usecase:
1. creating a project group for a big project
2. open a bunch of existing maven projects (even multi module) in it.
3. i'd expect that netbeans sets the default jdk for that group in all projects.

to change the jdk for multiple projects at the same time should be an extra enhancement which would be useful, but its not necessary for project groups.
Comment 3 squib 2016-03-17 08:32:12 UTC
This would be a great feature indeed. We have a project group with 85+ projects which need a specific JDK 8 version. If you install the latest JDK 8 and would like your projects to stay with the specific JDK version you have two options: use maven compiler with different jdk (which is not workable for us) or by using netbeans hint and set specific jdk platform. Doing this for 85+ projects is a pain..
Comment 4 Tomas Zezula 2016-03-17 09:25:22 UTC
Scheduled for NB 9.0.
I need to think how the UI should work as there should be a possibility to override the project group platform in the UI. So if there is a selected platform in project it has to be used. Some special "platform" as "Inhereted" will be needed in the UI, when user sets other it will be overridden.
Makes sense?
Comment 5 squib 2016-03-22 20:03:26 UTC
(In reply to Tomas Zezula from comment #4)
Yes sounds good. If a project's platform has been set it is used for this project regardless what has been set in project group. There should be an option to reset the project's platform (in this case the project group's platform will be used). What about setting the project group platform in the project group pane?