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.

Answers:

Answer

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'

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.