Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple nature for a single project in eclipse

Tags:

eclipse

is it possible to add multiple nature to a single project in eclipse ?

eg: i want to add Python and Ruby nature to a Java project.

the purpose. I have solutions to projecteuler.net problems in Java,Ruby,Scala,Clojure and Python. But the solutions are in different projects. I need them in a single project.

like image 366
Rajesh Pitty Avatar asked Sep 23 '11 07:09

Rajesh Pitty


People also ask

What is project nature in eclipse?

Project Natures in Eclipse Project Natures are used in the Eclipse IDE in order to configure projects in the workspace. One project may have several project natures. The most popular project nature is org.eclipse.jdt.core.javanature , which is used to indicate that a project is a Java project.

How to add spring project nature in Eclipse?

Just select your project, open the context menu, and select “Spring Tools -> Add Spring Project Nature”.

How do I add a builder to a given project?

Steps: Right Click -> Properties -> Project Facets. Click on convert project into a faceted project. Select the builder as java builder.


1 Answers

The GUI does not have any option for creating such a multilanguage projects.

However, technically, project natures can be added independently from each other. So if you manage to programmatically create the required environment, it would work. If you want to do it manually, find the .project file in the project root, and add all natures and builders to one (you can look the required elements from other projects - do a copy-paste).

This would add the project natures and builders, but not any additional configuration required - e.g. in Java projects .classpath files are used to describe the source folders, in other languages different configurations are needed.

Alltogether, if you need to do this multiple times, create a plug-in that manages this configuration for you; if you need it for a single project, think about it whether it is worth the huge effort required.

like image 112
Zoltán Ujhelyi Avatar answered Sep 29 '22 04:09

Zoltán Ujhelyi