Eclipse下.project和.classpath作用

  1. classpath作用

    定义项目的结构,如src、output、con、lib等。 

    源文件的具体位置(kind="src")

    运行的系统环境(kind="con")

    工程的library的具体位置信息(kind="lib")

    在每个lib的xml子节点中,有关于它的其它配置信息(例如我配置的那个"javadoc_location")

    项目的输出目录(kind="output")

    样本:

    <?xml version="1.0" encoding="UTF-8"?> <classpath>  <classpathentry kind="src" output="target/classes" path="src/main/java">   <attributes>    <attribute name="optional" value="true"/>    <attribute name="maven.pomderived" value="true"/>   </attributes>  </classpathentry>  <classpathentry excluding="\*\*" kind="src" output="target/classes" path="src/main/resources">   <attributes>    <attribute name="maven.pomderived" value="true"/>   </attributes>  </classpathentry>  <classpathentry kind="src" output="target/test-classes" path="src/test/java">   <attributes>    <attribute name="optional" value="true"/>    <attribute name="maven.pomderived" value="true"/>   </attributes>  </classpathentry>  <classpathentry excluding="\*\*" kind="src" output="target/test-classes" path="src/test/resources">   <attributes>    <attribute name="maven.pomderived" value="true"/>   </attributes>  </classpathentry>  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE\_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">   <attributes>    <attribute name="maven.pomderived" value="true"/>   </attributes>  </classpathentry>  <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2\_CLASSPATH\_CONTAINER">   <attributes>    <attribute name="maven.pomderived" value="true"/>   </attributes>  </classpathentry>  <classpathentry kind="output" path="target/classes"/> </classpath>  
  2. .project作

    工程名<name></name>

    工程注释描述<comment></comment>

    运行时需要的额外Eclipse插件<natures></natures>,及其具体加载方式信息<buildSpec></buildSpec>

    如果你在开发过程中向工程里面加入了很多额外的插件,则必然会导致你的Eclipse启动速度变慢。在这种情况下,你可以到这个文件里面去掉一些插件,不过这样一来你在开启那些关联文件的时候会加载那些插件

         样本:

<?xml version="1.0" encoding="UTF-8"?> <projectDescription>  <name>log4j-jmx-gui</name>  <comment></comment>  <projects>  </projects>  <buildSpec> <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.jdt.core.javanature</nature>
 </natures>
</projectDescription>

点赞
收藏

评论区

加载中...

相关推荐

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

java 环境配置 maven 环境配置

1、windows下Java环境的安装和配置:下载jdk并安装配置环境变量:(1)新建JAVA\_HOME环境变量,赋值为JDK的安装目录:(2)新建CLASSPATH环境变量,赋值为.;%JAVA\_HOME%\\lib\\dt.jar;%JAVA\_HOME%\\lib\\tools.jar;(3)在PATH环境变量中追加J

java项目里classpath具体指哪儿个路径

一、classpath路径指什么  只知道把配置文件如:mybatis.xml、springweb.xml、applicationContext.xml等放到src目录(就是存放代码.java文件的目录),然后使用“classpath:xxx.xml”来读取,都放到src目录准没错,那么到底classpath到底指的什么位置呢?   

皕杰报表去掉平台只保留报表的数据源配置

1.在tomcat/conf/server.xml里的host节点下,加上如图所示的数据2.在WEBINF/resource文件夹下的config.xml文件里。 3.将驱动包放在tomcat下的lib和WEBINF下的lib里面。

SonarQube install on Kubernetes

Sonarqube搭建代码apiVersion:extensions/v1beta1kind:Deploymentmetadata:name:postgreslabels:app:postgresspec:template:

12.k8s的存储卷创建过程

数据持久化需要数据卷。kubernetes生态提供海量的存储驱动和存储使用方式。root@mastersongcatpoddemo.ymlapiVersion:v1kind:Podmetadata:name:poddemonamespace:default