Tutorial Example Directory Structure - The Java EE 5 Tutorial (original) (raw)
Tutorial Example Directory Structure
To facilitate iterative development and keep application source separate from compiled files, the tutorial examples use the Java BluePrints application directory structure.
Each application module has the following structure:
- build.xml: Ant build file
- src/java: Java source files for the module
- src/conf: configuration files for the module, with the exception of web applications
- web: JSP and HTML pages, style sheets, tag files, and images
- web/WEB-INF: configuration files for web applications
- nbproject: NetBeans project files
Examples that have multiple application modules packaged into an enterprise application archive (or EAR) have submodule directories that use the following naming conventions:
- _example-name_-app-client: Application clients
- _example-name_-ejb: Enterprise bean JAR files
- _example-name_-war: web applications
The Ant build files (build.xml) distributed with the examples contain targets to create a build subdirectory and to copy and compile files into that directory; adist subdirectory, which holds the packaged module file; and a client-jar directory, which holds the retrieved application client JAR.
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices