Interpreting eclipse .classpath file. What does 'kind=“con”' and 'exported=“true”' mean?

前端 未结 2 1562

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

I think that kind=\"src\" and kind=\"output\"

相关标签:
2条回答
  • 2020-12-05 05:14
    • kind="con" are indicating classpath containers
    • exported=true exports the dependency, meaning that any project that has a depedency on your project can see/access the exported dependencies as well.
    0 讨论(0)
  • 2020-12-05 05:24

    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)
提交回复
热议问题