Eclipse / Eclipse如何存储用户库? [英] Where/How does Eclipse store user libraries?

查看:191
本文介绍了Eclipse / Eclipse如何存储用户库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Eclipse中开发一个Java项目。我创建了一个名为Spring的用户库,并添加了所有的Spring jar。我的问题是,Eclipse在哪里存储这个库?它是否将所有jar复制到磁盘上的某个新目录?还是在一些配置文件中维护关于哪个jar属于用户库的信息?

解决方案

Eclipse不会复制任何用户库的内容,它只是一个具有机器特定的绝对路径的容器。用户库定义存储在工作空间中;具体来说,在 .metadata / .plugins / org.eclipse.core.runtime / .settings / org.eclipse.jdt.core.prefs



用户库背后的想法是,在项目之外存在的JAR集合之外是一个抽象的;每个工作区都必须声明自己的内容,因为它们在Eclipse项目外部。


I am working on a Java Project in Eclipse. I created a user library called "Spring" and added all the Spring jars to it. My question is, where does Eclipse store this library? Does it copy all the jars into a new directory somewhere on the disk? Or does it maintain information in some configuration file as to which jars belong to the user library?

解决方案

Eclipse does not copy any of the contents of a User Library, it is merely a container with machine-specific absolute paths. The User Library definitions are stored in the workspace; specifically, in .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs.

The idea behind a User Library is that it is an abstraction above a collection of JARs that exist outside the project(s); each workspace must declare the contents for itself, since they are external to Eclipse projects.

这篇关于Eclipse / Eclipse如何存储用户库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆