This script opens a new, small, floating window and puts TOC<name>.html and IX<name>.html files in it and sets a generic popup window code to enable the display of some viewlets in the WebLogic Platform Tour.
Previous Next

 Building the MedRec Applications

Tutorial 13: Compiling the Entire MedRec Project

Previous tutorials explained how to compile, build, and deploy parts of individual MedRec applications. In this tutorial, you compile and build the entire MedRec application suite using the project-level build.xml file. Compiling the entire application suite is necessary to deploy all components on your system and verify that MedRec is running and usable.

The tutorial includes the following sections:

 

 

 

Prerequisites

Before starting this tutorial, create the project directory using the instructions in Tutorial 5: Creating the MedRec Project Directory.

 

 

 

Procedure

The project directory contains a master build.xml script that compiles all of the MedRec applications in the correct order. To run this script:

  1. Open a command shell and set the development environment:
    c:\bea\user_projects\domains\medrecdomain\setenv.cmd
    

  2. Move to the src subdirectory of the MedRec project directory:
    cd c:\medrec_tutorial\src
    

  3. Use the Ant command to execute the master build.xml script with the deploy.dev target:
    ant deploy.dev
    

    The build process displays messages indicating the progress for each application. The entire build process take approximately 2 to 5 minutes to complete, depending on the speed of your computer. The script should complete with the message, "BUILD SUCCESSFUL."

 

 

 

Best Practices

 

 

 

The Big Picture

The MedRec application suite has many dependencies that require coordination during the build process. When you run the master build file, the following events occur:

  1. The contents of startupEar are compiled using the wlcompile task.

  2. The contents of common are compiled. The common directory contains the source for several kinds of objects used by different MedRec applications:

  3. The medrecEar Enterprise Application is compiled. Although medrecEar uses the split development directory structure and the WebLogic Ant tasks in the build script, the application has several internal dependencies that are hard-coded in its build.xml script, using the include and exclude options to wlcompile.

  4. The physicianEar application is compiled. The physicianEar Web Service client is generated from the .wsdl file copied into the dist directory.

  5. The MedRec application suite client applications are compiled.

 

 

 

Related Reading

 

 Back to Top Previous Next