解释 eclipse .classpath 文件.'kind="con"' 是什么意

2023-08-22Java开发问题
14

本文介绍了解释 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"' 是什么意思和“出口="真“"意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

如何使用 JAVA 向 COM PORT 发送数据?
How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)...
2024-08-25 Java开发问题
21

如何使报表页面方向更改为“rtl"?
How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)...
2024-08-25 Java开发问题
19

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

有没有办法在 Java 中检测 RTL 语言?
Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)...
2024-08-25 Java开发问题
11

如何在 Java 中从 DB 加载资源包消息?
How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)...
2024-08-25 Java开发问题
13

如何更改 Java 中的默认语言环境设置以使其保持一致?
How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)...
2024-08-25 Java开发问题
13