eclipse 在eclipse中导入一个javascript项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13558610/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
importing a javascript project in eclipse
提问by azpublic
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 ?
我想知道是否可以在不同的 eclipse 项目中分离我的 javascript 库,然后将它们导入另一个动态 web 项目中,就像我通常为常规 java 子项目所做的那样?
This answer : Link JavaScript project with Java project in Eclipseis 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 .
这个答案:Link JavaScript project with Java project in Eclipse是我想要做的但是我真的不喜欢这个答案......我宁愿链接到工作区项目而不是直接依赖 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 ?
JSDT ( http://www.eclipse.org/webtools/jsdt/)似乎“向 Eclipse Workbench 添加了 JavaScript 项目类型和透视图”,但是您如何在您的 Java 项目中使用/导入/链接这些 JS 项目?
Thanks for your help.
谢谢你的帮助。
回答by nitind
Add it to the JavaScript Include Path of your web project from the relevant Property Page:
从相关的属性页将其添加到您的 Web 项目的 JavaScript 包含路径中: