Interpreting eclipse .classpath file. What does #39;kind=quot;conquot;#39; and #39;exported=quot;truequot;#39; mean?(解释 eclipse .classpath 文件.kind=con 是什么意思和“出口=真“意思是?)
问题描述
这是我下载的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文件都应该导出,但只导出其中的一部分.
- What does the 
kind="con"mean? - What is it for the 
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"' 是什么意思和“出口="真“"意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:解释 eclipse .classpath 文件.'kind="con"' 是什么意思和“出口="真“"意思是?
				
        
 
            
        基础教程推荐
- 多个组件的复杂布局 2022-01-01
 - 大摇大摆的枚举 2022-01-01
 - 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
 - Java Swing计时器未清除 2022-01-01
 - Java 实例变量在两个语句中声明和初始化 2022-01-01
 - 在 Java 中创建日期的正确方法是什么? 2022-01-01
 - 从 python 访问 JVM 2022-01-01
 - 验证是否调用了所有 getter 方法 2022-01-01
 - 不推荐使用 Api 注释的描述 2022-01-01
 - 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
 
    	
    	
    	
    	
    	
    	
    	
    	
						
						
						
						
						
				
				
				
				