Bug 23586

Summary: Creating a new project deletes files in the parent folder
Product: [Eclipse Project] JDT Reporter: Tristan O'Tierney <tristan>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.0.2   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tristan O'Tierney CLA 2002-09-14 17:28:39 EDT
I had over 2 years of code inside my E:\Programming directory
i created a new project by checking it out from CVS into e:\Programming because
i figured it would create a new folder inside it

i accidently checked it out to e:\programming\com\otherfolders.... when it
should have been e:\programming\halo43\com\...

well, eclipse decided to erase EVERY FOLDER AND FILE inside e:\programming

i had my most important things backed up, but i've lost countless hours of work
now because of such a stupid bug.
IF THE FOLDER ALREADY EXISTS, DO NOT ERASE THE FILES INSIDE THE GOD DAMN FOLDER.
thanks.
Comment 1 Philipe Mulet CLA 2002-09-19 08:33:46 EDT
The folder could map to an obsolete package, which should be flushed.
However, we clearly should warn the user before scrubbing.

Alternatively, we should refuse to build if .classpath is missing. Do you 
remember if this was the case ?

Comment 2 Tristan O'Tierney CLA 2002-09-19 19:39:28 EDT
all i did was check out to a folder as project from cvs
Comment 3 Philipe Mulet CLA 2002-10-28 08:55:29 EST
We should refuse to build if .classpath file is missing (not defaulting to 
empty CP).
Comment 4 Philipe Mulet CLA 2002-11-06 08:57:28 EST
Alternatively, we could report a task Classpath problem when it occurs, which 
would cause the builder to not perform either.
Comment 5 Jerome Lanneluc CLA 2002-11-06 09:19:21 EST
Tristan, I'd like to understand the scenario you ran into. When you did check 
out as project, was it as a simple project, or as a Java project?
Comment 6 Jerome Lanneluc CLA 2002-11-08 06:44:30 EST
If it was a Java project, a Java project wizard is now shown where you can 
enter the output location. This creates a .classpath file.

Also added classpath missing marker creation if a project is checked out with 
the Java nature but no .classpath file.
Comment 7 Tristan O'Tierney CLA 2002-11-08 14:36:01 EST
i checked it out, then in a pop up dialog it says what would you like to do, so
i choose a java project. it then asked what would you like to name the project.
 below that, there is a checkbox that allows you to specify a directory other
than ecplise\workspace\fileshere
Comment 8 David Audel CLA 2002-11-14 05:14:42 EST
Verified.