Community
Participate
Working Groups
Say you created a project and want to move it one level down. /path/to/Location /path/to/Location/BetterLocation You can attempt this with Refactor/Move and enter the new path. Eclipse will now delete the project, leaving only a .project file at BetterLocation. Everything else is deleted. Internallly Eclipse tries a File.renameTo, which fails. Then it performs a copy from Location to BetterLocation followed by a delete of Location (oops).
Created attachment 196813 [details] Screen shot When I try this, the dialog will not allow me to move the project to a sub-directory of itself. What version of Eclipse are you using, and how are you trying to move it?
Heres an exact procedure Start with empty workspace. Create a Java Project P in the workspace. See what it contains. $ find /Users/me/Documents/workspace/P /Users/me/Documents/workspace/P /Users/me/Documents/workspace/P/.classpath /Users/me/Documents/workspace/P/.project /Users/me/Documents/workspace/P/.settings /Users/me/Documents/workspace/P/.settings/org.eclipse.jdt.core.prefs /Users/me/Documents/workspace/P/bin /Users/me/Documents/workspace/P/src Select Refactor/Move and enter add /Q to the path. In my case: /Users/me/Documents/workspace/P/Q Eclipse 3.6 does NOT prevent this. During typing you wil se the error message tha prevents the move (i.e. after /, but not after Q). Often the error message appears and the move is prevented, but not always. Eclipse says it moved the project. Now look at the cotent again: $ find /Users/me/Documents/workspace/P /Users/me/Documents/workspace/P /Users/me/Documents/workspace/P/Q /Users/me/Documents/workspace/P/Q/.project /Users/me/Documents/workspace/P/Q/bin /Users/me/Documents/workspace/P/Q/bin/.project Most file missing. I guess the .project files comes from Eclipse actually creating them after the move. Eclipse Version: 3.6.2 Build id: M20110210-1200
Thanks for the details. *** This bug has been marked as a duplicate of bug 307140 ***