Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a project in Eclipse in a subfolder of the workspace

Tags:

eclipse

I want to create a Java-project in a subfolder of the workspace-directory. The wizard either lets me create a project in the workspace-directory, or import an existing one. Is there any way to achieve this?

like image 697
Björn Pollex Avatar asked Apr 26 '10 15:04

Björn Pollex


1 Answers

Step 1) Create project X as usual (it will end-up in the root of your workspace)

Step 2) Use a command-line shell of your OS to move the project X directory hierarchy under the desired target directory e.g. mv ~/workspace/abc ~/workspace/target/some_directory/

Step 3) Delete the original project X (do not select 'delete files')

Step 4) Import project X using `File -> Import -> Existing project into workspace'

Project X will appear in the package explorer view as it normally would.

Hope this helps :)

like image 147
jldupont Avatar answered Sep 21 '22 12:09

jldupont