Bug 23586 - Creating a new project deletes files in the parent folder
Summary: Creating a new project deletes files in the parent folder
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-14 17:28 EDT by Tristan O'Tierney CLA
Modified: 2002-11-14 05:14 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.