The specific role of the. Project and. classpath files in eclipse

Source: Internet
Author: User

. Project is a project file, where the structure of the project is defined, such as the location of the Lib, the location of the SRC, the location of the classes
The location of the. CLASSPATH defines the $classpath you use for this project at compile time
These files you can see with a text editor

The purpose of the midpoint refresh in a project is to update the list of files in the. project file so that you display the files that are not submitted to the project through eclipse

. classpath file

<?XML version= "1.0" encoding= "UTF-8"?><Classpath>    <ClasspathentryKind= "src"Path= "src"/>    <ClasspathentryKind= "src"Path= "Test"/>    <ClasspathentryKind= "Con"Path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/>    <ClasspathentryKind= "Con"Path= "ORG.ECLIPSE.JDT.JUNIT.JUNIT_CONTAINER/4"/>    <ClasspathentryKind= "Lib"Path= "Lib/dom4j-1.6.1.jar">        <attributes>            <attributename= "Javadoc_location"value= "file:/home/wpc/work/apache/dom4j-1.6.1/docs/api$ </attributes> </classpathentry> <clas Spathentry kind= "Output "Path= "Bin"/></Classpath>

From the data we can easily see that the above describes the project's dependent files:

    1. The exact location of the source file (kind= "src")
    2. Operating system environment (kind= "con")
    3. Specific location information for the project's library (kind= "Lib")
    4. In each LIB's XML child node, there is additional configuration information about it (for example, the "Javadoc_location" I configured)
    5. Output Directory of the project (kind= "Output")

In general, this document is the configuration of the entire project operating environment.

. Project File

<?XML version= "1.0" encoding= "UTF-8"?><projectdescription>    <name>Createinterpret</name>    <Comment>JavaCC [email protected] 32303037303632392d3130303020437265617465496e746572707265742f777063</Comment>    <Projects>    </Projects>    <Buildspec>        <Buildcommand>            <name>Sf.eclipse.javacc.javaccbuilder</name>             <arguments>            </arguments>        </Buildcommand>        <Buildcommand>            <name>Org.eclipse.jdt.core.javabuilder</name>              <arguments>            </arguments>        </Buildcommand>    </Buildspec>    <Natures>        <Nature>Org.eclipse.jdt.core.javanature</Nature>        <Nature>Sf.eclipse.javacc.javaccnature</Nature>    </Natures></projectdescription>    

From the data, we can see that these configurations are primarily about describing the basic engineering information:

    1. Project Name <name></name>
    2. Project Comment Description <comment></comment>
    3. Additional Eclipse plug-ins required by the runtime <natures></natures>, and their specific loading method information <buildSpec></buildSpec>

If you add a lot of additional plugins to your project during the development process, it will inevitably cause your eclipse to start slowly. In this case, you can remove some plugins from the file, but you will be able to load those plugins when you open those associated files.

. settings file

The configuration files for various plugins are stored inside.

The above is a simple introduction to Eclipse's project-related hidden configuration files.

[Reprint] Http://www.cnblogs.com/panjun-Donet/archive/2010/08/25/1807780.html

The specific role of the. Project and. classpath files in eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.