I am restructuring some projects on my local machine. Usually I don't want to touch a running project but since I have the opportunity to use an internal Bitbucket server now at my workplace I also want to have all my local project source files on one location.
So this is how I moved the project source files to another location on my local machine:
- Open Eclipse and go to the Package Explorer view
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSJ7JYXE_FSRuk-v_cmqGMAicQ2yT71saD0l48-3cI8wuZTFs17-zDOJ9l4pXL22-NLBjG8jp1v6WWbGpiMCkoeseuqlj8TFoX9kPxC0-aAL5c9zOwHzqRkO86c543xWIySVB89hT-GT_T/s320/eclipse1.png)
- Check your project folder locations
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8C34HvNYlJJcRoK6enBynYbekALOIcHFiSftftwG7LgoY-3_uuJUZ2NaqR2lFawbEZK1-6Jzd8qBIcxvLmJ8GAWKvKvG85aBZErO4FiPOHo-E37YZIBXuPY5-J6awgtMmCGdj9nCuOYkx/s320/eclipse2.png)
So the project is located in the folder D:\sample\net.mruhnau.sample.hello
- Right-click on the projec in the Package Explorer and choose Refactor --> Move...
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVXvBwLhp6-4JYHKc1mY2-d4EN3-Bv7kG3nxKSS24CPPuxd2_ICHYbyBbp1g896sqG0j9RdOhMQ3Z9EcwLdnDWQ_kCMVU7nhGoqHqjWqFY2yDXVIDIYxFleqOew7K_r977HSMx2nh0UUjM/s320/eclipse3.png)
- In the following dialog, choose the new folder location for the project and click OK.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHQWYsvoSs8SEQTGuVLZOXuPy_4W6CJ33B52oST_llL4G5kJyfD65BU0puyLi5WT_0TmA9cjWHXeMpgIDKKaVufTqLr3Bz4FcRx3o-KIiV-ws890WkNG0rgWdnwQolaxz1l-oQEenNqamZ/s320/eclipse4.png)
This is it, Eclipse moves the files to the specified location. The advantage is that using this procedure will retain your workingsets as well as project information, history etc. I think this is a very smooth way of reorganizing project files.
No comments:
Post a Comment
Comment Form Message