1 .classpath文件:
定义了你这个java项目在编译时所使用的$CLASSPATH
2 .project是项目文件:
eclipse项目的结构都在其中定义,比如lib的位置,src的位置,classes的位置
//3 /.settings目录:
具体介绍参考:https://yq.aliyun.com/articles/2597 ,说的比较详细
这些文件你用文本编辑器就能察看了
在一个项目中点刷新的目的是为了更新.project文件中的文件清单,让你把不通过eclipse提交到项目的文件显示出来
.classpath 文件
<?xml version=”1.0” encoding=”UTF-8”?>
<classpath>
<classpathentry kind=”src” path=”src/java”/>
<classpathentry kind=”src” output=”target/test-classes” path=”src/test”/>
<classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER”/>
<classpathentry kind=”var” path=”MAVEN_REPO/activation/jars/activation-1.0.jar”/>
<classpathentry kind=”var” path=”MAVEN_REPO/mvc/jars/mvc-1.0.jar”/>
<classpathentry kind=”var” path=”MAVEN_REPO/ehcache/jars/ehcache-1.0.jar”/>
<classpathentry kind=”var” path=”MAVEN_REPO/CodeManager/jars/CodeManager-1.0.jar”/>
<classpathentry kind=”var” path=”MAVEN_REPO/jetspeed/jars/jetspeed-1.4.jar”/>
<classpathentry kind=”var” path=”MAVEN_REPO/dwr/jars/dwr-1.1.1.jar”/>
<classpathentry kind=”var” path=”MAVEN_REPO/servletapi/jars/servletapi-2.4.jar”/>
<classpathentry kind=”var” path=”MAVEN_REPO/jspapi/jars/jsp-api-2.0.jar”/>
<classpathentry kind=”lib” path=”D:/workspace/repository/junit/jars/junit-3.8.1.jar”/>
<classpathentry kind=”output” path=”target/classes”/>
</classpath>
1、src是源文件具体目的地;
2、output是类文件输出目的的;
3、con是eclipse运行时所需的核心包;
4、var是通过环境变量的形式增加的一些 JAR包;
5、lib是直接加入的JAR包;
所以需要加入一些第三方的JAR文件时,直接编辑此文件即可,eclipse不需重启,工程即可生效;因为实质上这个文件就是配置整个工程的运行环境。
.project文件
<?xml version=”1.0” encoding=”UTF-8”?>
<projectDescription>
<name>mytest</name>
<comment>some description</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>JavaSrc</name>
<type>2</type>
<location>D:/workspace/study/petstore/src</location>
</link>
</linkedResources>
</projectDescription>
1、工程名<name></name>
2、工程注释描述<comment></comment>
3、运行时需要的额外Eclipse插件<natures></natures>,及其具体加载方式信息<buildSpec></buildSpec>
4、链接工程外部的资源<linkedResources></linkedResources>,链接后可以看做是在本工程的资源来使用,但并不在本地创建相应的资源。
<name>JavaSrc</name>为本工程显示的资源名称;
<type>2</type>资源类型(1–文件,2–目录。貌似除了1表示文件,x.x形式的带小数点的都表示文件,无论小数点后有几位和小数点前的数有多大);
<location>D:/workspace/study/petstore/src</location>为工程外部链接的资源。
如果你在开发过程中向工程里面加入了很多额外的插件,则必然会导致你的Eclipse启动速度变慢,
在这种情况下,你可以到这个文件里面去掉一些插件,不过这样一来你在开启那些关联文件的时候会加载那些插件。
参考地址:http://www.cnblogs.com/baby-zhude/p/4338370.html
http://blog.163.com/guoqi_king/blog/static/2106840492014317105010562/