简体   繁体   中英

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.

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

JavaScript/包含项目“JS”的路径属性页

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM