. classpath file
From the data we can easily see that the above describes the project's dependent files:
- The exact location of the source file (kind= "src")
- Operating system environment (kind= "con")
- Specific location information for the project's library (kind= "Lib")
- In each LIB's XML child node, there is additional configuration information about it (for example, the "Javadoc_location" I configured)
- Output Directory of the project (kind= "Output")
In general, this document is the configuration of the entire project operating environment.
. Project file
From the data, we can see that these configurations are primarily about describing the basic engineering information:
- Project Name <name></name>
- Project Comment Description <comment></comment>
- 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.
. Propertirs file
is a configuration file, key-value pair key = value, used to configure common parameters such as:
The main method of Properties is in Java.util. This class inherits Hashtable, and the main methods are:
1, GetProperty (String key) through the parameter key, get the value corresponding to key.
2, Load (InputStream instream), read the list of attributes (key-value pairs) from the input stream. gets all the key-value pairs in the file by loading the specified file (properties file). To search for GetProperty (String key).
3, Store (OutputStream out,string comments), in contrast to load, the method writes key-value pairs to the specified file.
3, SetProperty (key, value), set the key value pair, equivalent to call Hashtable in the put
. class and. Project and. Properties File Usage