项目的build path的几个选型卡Source、Projects、Libraries、Order and Export
2016-10-14 19:46
330 查看
build path各选项卡的意思也可以参考:
1、http://zhidao.baidu.com/link?url=1KDEFGydycob04vwmGhHocwXvGJFvoyfTGZSPtVU9HWkY6bsQYnrlfJjEvASgrOMXejiRLMxzhkDYkVgmCQ3Qq
2、http://blog.csdn.net/cheney521/article/details/8526414
1Source
为什么要选择存放.java文件的文件夹位置??其实就是指定src所在的位置。
举个例子:web.xml配置中,有如下配置片段:
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/*"/>
<mvc:exclude-mapping path="/admin/login.do"/>
<bean class="com.pb.Intercept.AuthInterceptor"></bean>
</mvc:interceptor>
</mvc:interceptors>
其中AdminInterceptor这个类在工程中的位置是
而在指定AuthInterceptor这个类的位置的时候,是没有加入test/src这个路径的,所以如果不在build path中设置source的话,就不能读到AuthInterceptor这个类。
2Project
如果test项目的build path中加入了工程A。这样test就可以直接去调用A里面的东西,这就跟你导入某个jar包是同一个概念。
3Libraries
3.1Add JAR
从Eclipse的现有所有工程中,添加jar包到该工程下
3.2Add External JARs
从Eclipse外的其他的位置,添加jar包到该工程下
3.3Add Variable
增加一个变量
3.4Add Library
增加一个库
3.5Add Class Folder
从Eclipse的现有所有工程中,增加一个class文件夹
3.6Add External Class Folder
从Eclipse的外,增加一个class文件夹
4 Order and Export
Order and Export有两个属性,调用优先级的问题,越在上边调用优先级越高。例如,在同包同类名的情况下,将优先从上到下执行搜索调用,打勾与不打勾的区别在于导出jar包时是否将这个库的内容也打包到jar中,勾为包含,不勾为不包含。
1、http://zhidao.baidu.com/link?url=1KDEFGydycob04vwmGhHocwXvGJFvoyfTGZSPtVU9HWkY6bsQYnrlfJjEvASgrOMXejiRLMxzhkDYkVgmCQ3Qq
2、http://blog.csdn.net/cheney521/article/details/8526414
1Source
为什么要选择存放.java文件的文件夹位置??其实就是指定src所在的位置。
举个例子:web.xml配置中,有如下配置片段:
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/*"/>
<mvc:exclude-mapping path="/admin/login.do"/>
<bean class="com.pb.Intercept.AuthInterceptor"></bean>
</mvc:interceptor>
</mvc:interceptors>
其中AdminInterceptor这个类在工程中的位置是
而在指定AuthInterceptor这个类的位置的时候,是没有加入test/src这个路径的,所以如果不在build path中设置source的话,就不能读到AuthInterceptor这个类。
2Project
如果test项目的build path中加入了工程A。这样test就可以直接去调用A里面的东西,这就跟你导入某个jar包是同一个概念。
3Libraries
3.1Add JAR
从Eclipse的现有所有工程中,添加jar包到该工程下
3.2Add External JARs
从Eclipse外的其他的位置,添加jar包到该工程下
3.3Add Variable
增加一个变量
3.4Add Library
增加一个库
3.5Add Class Folder
从Eclipse的现有所有工程中,增加一个class文件夹
3.6Add External Class Folder
从Eclipse的外,增加一个class文件夹
4 Order and Export
Order and Export有两个属性,调用优先级的问题,越在上边调用优先级越高。例如,在同包同类名的情况下,将优先从上到下执行搜索调用,打勾与不打勾的区别在于导出jar包时是否将这个库的内容也打包到jar中,勾为包含,不勾为不包含。
相关文章推荐
- 项目的build path的几个选型卡都是以什么意思?1Source 2Projects 3Libraries 4Order and Export
- 开源项目的映像站点(http and ftp mirrors for opensource projects)
- eclipse的 build path 里面 的 order and export 选项卡的作用
- The list of vision-based SLAM / Visual Odometry open source projects, libraries, dataset, tools, and
- 项目管理实践【五】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website automatically】
- 项目管理实践【五】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website autom
- 项目管理实践教程二、源代码控制【Source Control Using VisualSVN Server and TortoiseSVN】
- eclipse 中 构建路径下的 order and export 是干什么用
- VS2005web应用程序项目教程(6)Creating and Using User Control Libraries
- 项目管理实践教程二、源代码控制【Source Control Using VisualSVN Server and TortoiseSVN】
- Free Numerical, Mathematical, Statistics Libraries and Source Code
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
- 项目管理实践【五】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website autom
- 项目管理实践【五】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website automatically】
- 项目管理实践【五】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website automatically】
- zz : A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++ ---- nafxcw.lib(a
- 项目管理实践教程二、源代码控制【Source Control Using VisualSVN Server and TortoiseSVN】
- 项目管理实践教程二、源代码控制【Source Control Using VisualSVN Server and TortoiseSVN】
- List of free and open source operating systems (In alphabetic order, 345)
- 项目管理实践教程二、源代码控制【Source Control Using VisualSVN Server and TortoiseSVN】