java kind con,解释eclipse .classpath文件。什么是“kind =”con“和“exports =”true“意思?...

This is the eclipse .classpath file of the eclipse plugin program that I downloaded.

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.

The kind="lib" seems to indicate the jar files the plugin is referencing, but I have something that I'm not sure about.

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.

Lyjtu.png

解决方案

1) In kind="con", the con stands for container, which is interpreted by eclipse as a classpath container. As described in that link:

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) 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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值