这是我下载的eclipse插件程序的eclipse.classpath
文件.
This is the eclipse .classpath
file of the eclipse plugin program that I downloaded.
我认为 kind="src"
和 kind="output"
非常简单,因为它们意味着源 java 文件和编译的类文件的位置位于.
I think that kind="src"
and kind="output"
is pretty straight forward, as they means the where the source java files and compiled class files are located.
kind="lib"
似乎表示插件正在引用的 jar 文件,但我有一些我不确定的东西.
The kind="lib"
seems to indicate the jar files the plugin is referencing, but I have something that I'm not sure about.
kind="con"
是什么意思?exported="true"
是什么?我认为为了使用这个插件,插件引用的所有jar文件都应该导出,但只导出其中的一部分.kind="con"
mean? exported="true"
? I think in order to use this plugin, all the jar files that the plugin refers to should be exported, but only some of them are exported.1) 在kind="con"
中,con
代表容器,由eclipse 作为 类路径容器.如该链接所述:
1) In kind="con"
, the con
stands for container, which is interpreted by eclipse as a classpath container. As described in that link:
类路径容器提供了一种间接引用一组通过 CPE_CONTAINER 类路径条目的类路径条目
A classpath container provides a way to indirectly reference a set of classpath entries through a classpath entry of kind CPE_CONTAINER
换句话说,它可以以任何方式对其他类路径条目进行分组并在任何地方重复使用它(包括为不同项目提供不同条目的能力).
In other words, it enables grouping of other classpath entries in any way and re-use it wherever (including the ability of having different entries for different projects).
2) 导出
:假设您有依赖于项目 C
的项目 B
.依赖项定义为 exported=true
.然后,依赖于项目 B
的另一个项目 A
也将在 A
'a 类路径上存在项目 C
.
2) exported
:
Say you have Project B
that depends on Project C
. The dependency is defined as exported=true
. Then, another Project A
that depends on Project B
, will have also Project C
present on A
'a classpath.
这篇关于解释 eclipse .classpath 文件.'kind="con"' 是什么意思和“出口="真“"意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!