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.
Hi, When I have created an Enterprise project in NB6 M10, an EJB and a WAR project are created as well. But when I delete the Enterprise project the EJB and WAR projects are not deleted, I need to delete them separately by hand, ie via right-click | delete. Iwan
Reassigning to "j2ee" for evaluation...
The workaround is very simple, so not sure if this is a P2. Tomas, I believe Radko implemented this in the first place, so you may want to check with him regarding whether this behavior is intentional or not.
After the discussion with Radko I'm closing this issue as WONTFIX because EAR project itself doesn't know which modules can/should be deleted. User can add e.g. another web module which definitely shouldn't be deleted. According to Bug Priority Guidelines changing to P3.
Well I disagree as the WAR and EJB projects I'm talking about are generated as part of the creation of the EAR project and are subdirectories of the EAR-project directory, they 'belong' to the EAR project. Meaning that it is intuitive that when I delete the EAR project, all are deleted. I agree with the fact that when you add additional projects to the EAR project, they shouldn't be deleted as long as they have a different project directory root than the EAR project. So: MyProjects | +- MyEarProject | | | +- MyEjbProject | | | +- MyWarProject | +- MyOtherWarProject should result in: MyProjects | +- MyOtherWarProject After deleting MyEarProject. Iwan
The delete project operation wasn't designed to delete included modules (projects), just sources and project files. This is enough for most project types. EAR project type is an exception from this point of view because it has no sources but it includes web or ejb projects. To delete projects which were created together with EAR project is a little bit problematic: - EAR project does not know which projects were created together with it, this information is not stored anywhere. EAR project only knows which projects are included in it. - to delete projects which are placed under EAR folder is not a good solution. There is a use case that the user can create his own web or ejb project under EAR folder and include this project into his EAR project. So in case of deleting projects placed under EAR folder this extra created project would be deleted too and it is not expected and wanted behaviour. I don't see any simple solution for 6.0 release. The right solution should probably be to display a dialog showing all included projects and allow the user to choose which projects should be deleted and which not. But I think it is too late to do it for 6.0 release, this kind of changes is not allowed now. I propose to postpone this issue for next release and then discuss what should be the correct solution and if it should be done on EAR project side or generally on project support side.
I agree with Radko. I think that this issue is more enhancement than bug...
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss