Eclipse中 Linked Resources 的使用
2016-07-12 10:51
295 查看
一、关于linked resource
eclipse 中的linkded resources 是指存放在项目所在位置以外某个地方的文件或者文件夹;这些特定的资源必须有一个项目作为他们的父资源。linkded resources可以用来给项目添加某些资源,这些资源因为某些原因必须被报春到项目以外的某个地方。
你可以使用linked resources来覆盖在workspace中的其他资源;从而使得一个项目的资源可以出现在另外一个项目中;这意味着,一个地方的改变可以使另外一个地方的资源同时发生改变;删除一个资源副本,会导致两个地方的资源同时被删除。
删除linked resources不会导致资源从文件系统中删除,但是删除linked folder下的资源,则会导致资源从文件系统中被删除。
二、创建linked resource
1).创建一个linked folder1.In one of the navigation views, right-click the project where you want to create the new folder.
2.From the pop-up menu, select New > Folder.
3.Specify the name of the folder as it will appear in the workbench. This name can be different from the name of the folder in the file system.
4.Click Advanced.
5.Check Link to folder in the file system.
6.Enter a file system path, or click Browse to select a folder in the file system.
7.Click Finish.
To create a linked file, follow the same steps as above, except choose New > File instead of New > Folder in the context menu.Linked resource locations can also be specified relative to a variable. This makes it easier to share projects containing linked resources with other team members, since it avoids hard-coded absolute file system paths that may vary from one machine to the next.To define a linked resource relative to a path variable, do the following after step 5 above:6.Click the Variables button.
7.In the resulting dialog, select an existing path variable or create a new one.
8.If the chosen variable defines the exact path of the linked resource, click OK. Otherwise, click Extend to specify a file or folder below the location described by the path variable, then click OK.
9.Click Finish.
Tip: The Window > Preferences > General > Workspace > Linked Resources preference page also allows you to define path variables.Note that, once you create a linked resource you will not be able to change the link target path that you entered in step 6. or 8. above.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/wsmyf7958/archive/2007/05/16/1611781.aspx
eclipse 中的linkded resources 是指存放在项目所在位置以外某个地方的文件或者文件夹;这些特定的资源必须有一个项目作为他们的父资源。linkded resources可以用来给项目添加某些资源,这些资源因为某些原因必须被报春到项目以外的某个地方。
你可以使用linked resources来覆盖在workspace中的其他资源;从而使得一个项目的资源可以出现在另外一个项目中;这意味着,一个地方的改变可以使另外一个地方的资源同时发生改变;删除一个资源副本,会导致两个地方的资源同时被删除。
删除linked resources不会导致资源从文件系统中删除,但是删除linked folder下的资源,则会导致资源从文件系统中被删除。
二、创建linked resource
1).创建一个linked folder1.In one of the navigation views, right-click the project where you want to create the new folder.
2.From the pop-up menu, select New > Folder.
3.Specify the name of the folder as it will appear in the workbench. This name can be different from the name of the folder in the file system.
4.Click Advanced.
5.Check Link to folder in the file system.
6.Enter a file system path, or click Browse to select a folder in the file system.
7.Click Finish.
To create a linked file, follow the same steps as above, except choose New > File instead of New > Folder in the context menu.Linked resource locations can also be specified relative to a variable. This makes it easier to share projects containing linked resources with other team members, since it avoids hard-coded absolute file system paths that may vary from one machine to the next.To define a linked resource relative to a path variable, do the following after step 5 above:6.Click the Variables button.
7.In the resulting dialog, select an existing path variable or create a new one.
8.If the chosen variable defines the exact path of the linked resource, click OK. Otherwise, click Extend to specify a file or folder below the location described by the path variable, then click OK.
9.Click Finish.
Tip: The Window > Preferences > General > Workspace > Linked Resources preference page also allows you to define path variables.Note that, once you create a linked resource you will not be able to change the link target path that you entered in step 6. or 8. above.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/wsmyf7958/archive/2007/05/16/1611781.aspx
相关文章推荐
- org.springframework.web.context.ContextLoaderListener
- Eclipse如何导出可执行jar包
- 安装完NetBeans6.9.1加载项目的时候报错
- Nokia S60v5 javaME 禁用 softkeypad
- MyEclipse 8.5 中 MTJ 的安装
- 【Struts2】--项目环境搭建
- 在java中,数据缓存的实现
- java自定义注解在excel导出时的使用
- java题一(NK)
- Java实现酒店管理系统之Java swing酒店管理系统的实现及源码下载
- AtomicInteger的使用
- javacv windows下视频提取帧再转化为灰度直方图
- hql的条件查询
- springMVC,mybatis配置事务
- Spring MVC请求处理流程及源码分析
- spring + maven 基于注解的配置(2)
- Spring事务管理
- 个人学习-java-JDBC事务的操作
- Java序列化和反序列化
- Spring AOP 学习笔记