.classpath文件:
<classpathentry kind="src" path=""/>
<classpathentry kind="con" path=""/>
<classpathentry kind="lib" path=""/>
<classpathentry kind="output" path="bin"/>
上面参数的含义为:
源文件的具体位置(kind=”src”)
运行的系统环境(kind=”con”)
工程的library的具体位置信息(kind=”lib”)
项目的输出目录(kind=”output”)
.project 文件:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>myibatis</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>mybatis</name>
<type>2</type>
<location></location>
</link>
</linkedResources>
</projectDescription>
上面参数的含义为:
工程名<name></name>
工程注释描述<comment></comment>
运行时需要的额外Eclipse插件<natures></natures>,及其具体加载信息<buildSpec></buildSpec>。
工程中的文件连接使用<linkedResources>进行说明
转载自:eclipse的工程配置(.classpath和.project)文件的作用
参考:eclipse中的.project 和 .classpath文件的具体作用