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 118228 - [60cat] Delete Project with option Delete sources leaves source directories
Summary: [60cat] Delete Project with option Delete sources leaves source directories
Status: RESOLVED DUPLICATE of bug 115371
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-09 14:09 UTC by host
Modified: 2008-07-03 15:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description host 2007-10-09 14:09:46 UTC
[ JDK VERSION : 1.6.0_02 ]

I select "Delete Project" on a project and tick the option to also
delete sources.

The actual source files were indeed all deleted.

But (obviously) all the directories (i.e. packages) where the source
files were in before (e.g.
"\src\uk\ac\man\cs\mig\coode\owlviz\model") were not deleted.

Also, it would be nice to delete the created class files and the rest
of the files/directories (e.g. created resources) within the project
too (i.e. change the option for "Delete Project" to "Delete all
files/directories within the project")

The project was under Subversion version control.
Comment 1 Milos Kleint 2007-10-09 14:21:43 UTC
1. what project type?

2. what was the residue content in the folders after doing the Delete action?

possibly related to #107029
Comment 2 host 2007-10-09 14:28:27 UTC
1. The sources and libraries of the project were initially checked out outside of NB with TortoiseSVN. Then in NB I
created a new Java project with Ant build script from existing sources.

2. The residues in all folders (as far as I can see) were the .svn directories (with their content). From the folders
that did not contain Java sources but JAR libraries those JAR files were not deleted either, also the ant build files,
properties files, bat files and so on stayed there.
Comment 3 Milos Kleint 2008-07-03 13:55:01 UTC
have the folder been removed by svn?
if I understand subversion correctly, the folders stay at the working copy after svn remove until you do svn commit.

as far as files goes, these should have been removed however the IDE is rather conservative when it comes to delete
stuff it doesn't know about. You could have been using the jar files in other projects from example.

in any case, deleting of projects is not a day-to-day task (->P4) 
Comment 4 Tomas Stupka 2008-07-03 15:18:10 UTC
the folders stay on the disk as the delete also has to be committed. If you didn't open the versioning view for a project before you deleted it you still may 
navigate the relevant folders from the favorites view and invoke the commit there. 

*** This issue has been marked as a duplicate of 115371 ***