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 267703

Summary: Delete project with metadata into a separate directory
Product: projects Reporter: amobilia
Component: Generic InfrastructureAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description amobilia 2016-08-25 15:03:21 UTC
Steps to reproduce
- Create a new PHP -> PHP Application
=> Project name : "myProject"
=> Check "Put Netbeans metadata into a separate directory" and define folder "myMetaData" (instead of myProject)
[At this step, two folders are created : myProject and myMetaData]

- Right click on the project "myProject" -> Delete...
- Check the box "Also delete sources under "...path...\myMetaData" folder
- Click on Yes


What's happened :
- Folder "myMetaData" is deleted
- Folder "myProject" isn't deleted


What's expected :
- Both myMetaData and myProject folders to be deleted
- The pop-up should ask to delete the sources... "myProject"
Comment 1 Tomas Mysik 2016-08-26 06:22:05 UTC
From some reason (based on issue #61546 but not clear to me) if the source dir is not underneath project dir, it is not deleted [1] (perhaps it is external directory typically not created by NetBeans?).

Reassigning, please evaluate. Thanks.
[1] DefaultProjectOperationsImplementation.java, line 190