Link JavaScript project with Java project in Eclipse

I want to associate a Java project with a JavaScript project that I have in my Eclipse.

Basically, a Java project has a set of libraries that we implement in a JavaScript project, so in order not to duplicate the code, I want to link them.

How can I do that?

This is the actual structure:

JSProj JSLib1 JSLib2 JSLib3 JavaProj App scripts (Here should be a link to JSProj) 

Thanks for the hand!

+3
source share
1 answer

One way to achieve this is to create a linked folder that points to the location of your JavaScript project.

New > Folder > Advanced > Link to Alternate Location

Then go to the location of JSProj.

The disadvantage is that it is a link to the file system, not a link in the workspace. Theoretically, you just want to add a JavaScript project to the path of creating a Java project, but it looks like it only works when they are both Java projects (or maybe the same type).

+4
source

All Articles