background image

Example Directory Structure

<< Building the Examples | Debugging Java EE Applications >>
<< Building the Examples | Debugging Java EE Applications >>

Example Directory Structure

Note ­
On Windows, you must escape any backslashes in the javaee.home property with
another backslash or use forward slashes as a path separator. So, if your Application Server
installation is C:\Sun\AppServer, you must set javaee.home to javaee.home =
C:\\Sun\\AppServer
or javaee.home=C:/Sun/AppServer.
Set the javaee.tutorial.home property to the location of your tutorial. This property is
used for Ant deployment and undeployment.
For example, on UNIX:
javaee.tutorial.home=/home/username/javaeetutorial5
On Windows:
javaee.tutorial.home=C:/javaeetutorial5
Do not install the tutorial to a location with spaces in the path.
If you did not accept the default values for the admin user and password, set the admin.user
property to the value you specified when you installed the Application Server, and set the
admin user's password in the admin-password.txt file in the
tut-install/javaeetutorial5/examples/common/ directory to the value you specified when
you installed the Application Server.
If you did not use port 8080, set the domain.resources.port property to the value specified
when you installed the Application Server.
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
Tutorial Example Directory Structure
Chapter 2 · Using the Tutorial Examples
71