Java project resource layout plan

xiaoxiao2021-03-06  27

Java project resource layout scheme 1. The root directory of the root directory project of the root directory project can be freely defined, for example: Jarkavta-Ant2. The following resource layout is set under the layout structure root directory of the root directory: a. SRC: All types of source code (* .java) of the project. b. LIB: Store all kinds of repository required for projects (* .jar, *. Zip). C. DOCS: The various document resources (* .html, *. PDF) are stored. d. OUT: Store compilation output (* .class) for debugging and testing purposes. 3. The following resource layout is set under the layout structure of the SRC directory: a. ETC: Store the various resource profiles (* .xml, * .prop, etc.) to use. b. MAIN: Store all kinds of .java source files (including common type. EJB, etc.). C. TestCases: Store all kinds of source code files (* .java) for testing purposes. Path: root / src4. The following resource layout is set under the layout structure of the ETC directory: a. EJBS: Store the descriptor (* .xml) of EJB. b. SQL: Store script files (* .sql) for SQL. C. TestCases: Store all kinds of profiles for testing. d. Web: Store configuration files (* .xml) on the web. Path: Root / SRC / ETC5. The following resource layout is set under the layout structure main directory of the main directory. General: Store universal (general) * .java source file. b. EJBS: Store the EJB * .java source file. C. Tags: Store the * .java source file of the label library. Path: root / src / main6. The following resource layout is set under the layout structure TestCases directory: Root / SRC / Tests7. The resource units set under the layout structure of the lib directory are arranged in accordance with actual needs. For example, JDBC, JUnit, Ant, WebLogic, etc. are scheduled under the lib directory. Path: root / lib8. About the resource layout set under the layout structure DOCS directory of the DOCS directory: a. MANUAL: Document resources such as the use manual of the project product. b. Manual / API: Store the project's API document resource, generated by the Javadoc tool. Path: root / docs9. Set the following resource layout in the layout structure of the OUT directory: a. Classes: Store compile overflow * .class files. b. LIB: Store the resource library * .jar file. Path: root / outjava project source code path - SourcePath Settings Follow the settings of the Java Project Resource Layout Scheme, set the IDE or JAVAC's source code path as follows: a. Root / SRC / Main / General: General (General) * .java source file. b. Root / src / main / ejbs: EJBS related * .java source files.

转载请注明原文地址:https://www.9cbs.com/read-77107.html

New Post(0)