'importing a javascript project in eclipse

I was wondering if it was possible to separate my javascript libraries in different eclipse project and then import them in another dynamic web project like I would normally do for regular java sub-projects ?

This answer : Link JavaScript project with Java project in Eclipse is what I want to do however I dont really like the answer ... I'd rather link to workspace projects rather than directly rely on the FileSystem .

It seems the JSDT ( http://www.eclipse.org/webtools/jsdt/ ) "adds a JavaScript project type and perspective to the Eclipse Workbench" but how do you use / import / link these JS projects in your java project ?

Thanks for your help.



Solution 1:[1]

Add it to the JavaScript Include Path of your web project from the relevant Property Page:

JavaScript/Include Path property page for the project 'JS'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 nitind