Bug 33489 - .project not local after deleting it
Summary: .project not local after deleting it
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 31381 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-27 15:02 EST by John Arthorne CLA
Modified: 2003-03-20 12:33 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2003-02-27 15:02:07 EST
BUild: 2.1 RC1

1) Create a simple project
2) Delete the .project
3) Shutdown & restart

-> The .project file now exists, but the LOCAL_EXISTS bit is not set.  This
causes various operations to fail, such as replace with > latest from repository.

The fix is to update local sync info when we add the .project file to the tree,
in FileSystemResourceManager.read(IProject, boolean):

if (info == null) {
	//create a new resource on the sly -- don't want to start an operation
	info = getWorkspace().createResource(descriptionFile, false);
	updateLocalSync(info, lastModified);//this line added
}

DJ, I have the fix in hand, just need TL approval for RC2 consideration.
Comment 1 DJ Houghton CLA 2003-02-27 15:08:08 EST
Sure.
I wouldn't release the "//this line added" comments though. ;-)
Comment 2 John Arthorne CLA 2003-02-27 17:33:48 EST
Fixed.
Comment 3 John Arthorne CLA 2003-03-03 16:44:42 EST
*** Bug 31381 has been marked as a duplicate of this bug. ***
Comment 4 John Arthorne CLA 2003-03-05 12:00:55 EST
*** Bug 33075 has been marked as a duplicate of this bug. ***
Comment 5 John Arthorne CLA 2003-03-20 12:33:20 EST
Verified in RC3