eclipse 下 .classpath和.project文件简析

.classpath


1
<?xml version="1.0" encoding="UTF-8"?> 2 <classpath> 3 <classpathentry kind="src" path="src"/> 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre6"> 5 <attributes> 6 <attribute name="owner.project.facets" value="java"/> 7 </attributes> 8 </classpathentry> 9 <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"> 10 <attributes> 11 <attribute name="owner.project.facets" value="jst.web"/> 12 </attributes> 13 </classpathentry> 14 <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> 15 <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> 16 <classpathentry kind="output" path="build/classes"/> 17 </classpath>

保存着源代码目录 

<classpathentry kind="src" path="src"/>

还有编译的class文件目录

<classpathentry kind="output" path="build/classes"/>

还有 一些其他设置

.project

总得来说就是工程的基本描述

 工程名<name></name>

还有备注 <comment></comment>

原文地址:https://www.cnblogs.com/lfzark/p/2912885.html