Results 1 to 4 of 4
- 03-29-2008, 01:30 AM #1
Member
- Join Date
- Mar 2008
- Posts
- 6
- Rep Power
- 0
Renaming underlying directory in Java project
Hi,
I have a directory with my source and a Java project based on it. How can I rename my directory without having to re-create an entire Java project?
It seems to me that if I just rename the directory, Eclipse won't know where to find it.
And renaming it and creating a new project based on the renamed directory forces me to configure all the options I configured before.
Also, renaming the folder in the Eclipse environment does not actually change the directory's name.
Thanks,
Rodrigo
- 01-29-2009, 10:49 AM #2
Member
- Join Date
- Jan 2009
- Posts
- 3
- Rep Power
- 0
Eclipse does not depend on the root directory of a project, you just need all the correct files and the project settings file. You should have a .classpath, .project files and .metadata folder in your project root directory.
So long as you have that you should be fine. So simply close the project in Eclipse (make sure not to delete contents!), rename the dir, fire up Eclipse again and then *import* your project instead of creating a new one.
- 01-29-2009, 06:47 PM #3
Member
- Join Date
- Mar 2008
- Posts
- 6
- Rep Power
- 0
Thanks!
Rodrigo
- 03-08-2009, 07:25 AM #4
Similar Threads
-
How to create directory through Java Code
By Java Tip in forum java.ioReplies: 1Last Post: 04-14-2009, 03:34 PM -
Renaming a method/variable
By gapper in forum EclipseReplies: 0Last Post: 01-31-2008, 01:29 PM -
Renaming a class
By mew in forum EclipseReplies: 2Last Post: 12-06-2007, 11:29 PM -
Renaming a class in Eclipse
By Java Tip in forum Java TipReplies: 0Last Post: 12-04-2007, 10:54 AM -
How do I identify that the underlying OS supports a certain language?
By johnt in forum AWT / SwingReplies: 1Last Post: 05-19-2007, 11:25 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks