简体   繁体   English

java:使用专用文件夹存储库?

[英]java: use dedicated folder for storing libraries?

i'm using netbeans and When i create a new Java Web >> Web Application there is an option to use dedicated folder for storing libraries 我正在使用netbeans,当我创建一个新的Java Web >> Web应用程序时 ,可以选择使用专用文件夹来存储库

I'm wondering what's the difference if i check/uncheck it? 我想知道如果我检查/取消选中它有什么区别?

If you check the box then all your libs will be copied onto that folder (for the project) instead of just referencing them from your file system. 如果选中该复选框,则所有库将被复制到该文件夹​​(用于项目),而不是仅从文件系统中引用它们。 This can be useful if you're gonna import your project in a repository. 如果您要在存储库中导入项目,这可能很有用。 However the size of the folder will increase greatly. 但是文件夹的大小会大大增加。 I don't recommend using this option unless there's no practical way of sending those libs to your collaborators. 我不建议使用此选项,除非没有实际的方法将这些库发送给您的协作者。

通过选中使用专用文件夹的选项,存储在项目下的lib文件夹中的所有jar依赖项将在构建时自动复制到分发文件夹。您可以保证将项目带到任何计算机并使用Ant(或NetBeans)运行构建)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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