在"订单与出口"选项​​卡" Java构建路径" [英] The "Order and Export" tab in "Java Build Path"

查看:178
本文介绍了在"订单与出口"选项​​卡" Java构建路径"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是在Java构建路径对话框中使用排序和导出选项卡?
由名订单,我可以猜测,之前插件依赖,但为什么我们在构建路径有'出口'JRE系统库中搜索? ,什么是它的元素的按钮左侧?

What's the use of "Order and Export" tab in "Java Build Path" dialog box? By the name 'order', I can guess that JRE System library is searched before Plug-in Dependencies, but why do we have 'Export' in Build Path ? And what's it for the button left side of the elements?

这是我从 Eclipse的蒸馏水的例子。

该orderes.webapp取决于订单,但它很可能使用UBL和目录中定义的类。

The orderes.webapp depends on orders, but it's likely to use the classes defined in ubl and catalog.

在这种情况下,命令可以导出目录和UBL使得依赖于它的包可以使用目录和UBL。

In such a case, orders can export catalog and ubl so that the packages that depends on it can use catalog and ubl.

和关于排序和导出更多的东西。

And something more about "Order and Export".


  1. 左侧按钮的检查修改的.classpath 文件中加入出口= TRUE < classpathentry出口=真的那种=LIB路径=LIB /的log4j-1.2.7.jar/>

  2. 在src为必检项目,而你无法取消勾选。

  1. The check of the left side button modifies the .classpath file to add exported=true such as <classpathentry exported="true" kind="lib" path="lib/log4j-1.2.7.jar"/>.
  2. The src is always checked, and you can't uncheck it.

References

  • Interpreting eclipse .classpath file
  • Configuring an Eclipse Java Project
  • Java Build Path
  • 推荐答案

    这似乎标签拉双重职责(见<一href=\"http://help.eclipse.org/juno/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-properties-build-path.htm\">bottom对于少量的细节),此帮助页面。

    This tab seems to pull double duty (see bottom of this help page for small amount of detail).

    在一方面,它用作分辨率的用于在所讨论的项目(订单部分)的建筑物中使用的资源的顺序。另一方面,它也可用于定义了这个构建路径的部分相关项目的(那些在项目标签,列出这个项目对他们这个preference面板视图)构建路径(导出的贡献部分)。

    On one hand, it functions as the order of resolution for resources used in the building of the project in question (the "Order" part). On the other, it also serves to define what parts of this build path are contributed to dependent projects' (those listing this project in the "projects" tab for their view of this preference panel) build paths (the "Export" part).

    这后者的功能就是在左侧存在的复选框,当你问(注意' - '符号不能选中,因为在这个项目中所定义的源文件不能被取消,在帮助文件中所述)。从属项目,预计从项目贡献将无法编译/如果贡献的项目不导出资源上运行某些资源。

    This latter function is why the checkboxes exist on the left hand side, as you ask (note that the '-' signs cannot be unchecked, as source files defined in this project cannot be deselected, as stated in help file). A dependent project that expects some resource from the contributing project will not compile/run if the contributing project doesn't export that resource.

    编辑:看<一个href=\"http://stackoverflow.com/questions/2737486/what-is-the-use-of-order-and-export-tab-in-java-build-path\">this SO帖子的佐证。

    这篇关于在&QUOT;订单与出口&QUOT;选项​​卡&QUOT; Java构建路径&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆