Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Manually Add Project To Eclipse Without Using Eclipse

Tags:

eclipse

I'd like to manually create the folders/files on the file system that create a new project in a workspace in eclipse, and show up in the Project Explorer when eclipse is started and the workspace is selected.

What files would need to be created to do this and where would they need to be?

Please understand that I do not want to open eclipse and make a new project using eclipse. I want to make a new project without using eclipse.

like image 452
mudge Avatar asked Mar 22 '26 11:03

mudge


1 Answers

I think you will need to do the following

  • create a .project file and whatever other files needed by your specific type of project (for example java projects need .classpath) in the project folder, you can find out what you need by looking at those files for another project.
  • In your workspace .metadata folder, this is where eclipse keeps information about the current workspace, I think the plugin responsible for project definition is .metadata/.plugins/org.eclipse.core.resources , you will need to create those files yourself, some of them are binary, so you will need to open up the source of that plugin to see exactly how it writes them. Depending on your project, you will need to write more .metadata plugin information (for maven for example).
like image 85
shipmaster Avatar answered Mar 25 '26 17:03

shipmaster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!