|
Guidelines, Patterns, and code for end-to-end Java applications.Java Pet Store Demo 1.3.2 > Building the Demo Building the DemoWe use Ant version 1.4.1 to build the source code. Ant is a Java-based build tool like make, which has been developed under the auspices of the Apache Software Foundation. A working version of Ant is provided as part of the Java Pet Store Demo bundle.
1.0 Building Pet Store DemoThis section explains how to build the application binaries for the petstore application which uses JMS for communication between the Order Processing Center and the Supplier. Building all the application binaries and performing other tasks with Ant involves running the top-level build script in the root directory of the demo installation.Before building the application, you need to configure the <petstore.home>/src/build.properties file to match your enviroment. You need to set the following properties:
To build the application binaries on Unix, open a shell prompt and enter these commands: cd <petstore.home>/srcTo build the application binaries on Windows, open a shell prompt and enter these commands: cd <petstore.home>\srcWhen the build script, build.bat (Windows) or build.sh (Unix), is invoked without any arguments, all the application binaries are built. The binaries are placed in the following folders: <petstore.home>/src/apps/admin/build/petstoreadmin.earThe following table lists possible arguments for the top-level build script: Arguments for ant
1.1 Building a Single ApplicationTo build a single application, run the build script (build.bat or build.sh) in to <petstore.home>/src/apps/<app>/src , where <app> is one of the following:petstore, which contains the
code for the storefront.
opc, which contains the code for the order processing center. supplier, which contains the code for the supplier. admin, which contains the code for the administrative front-end. 1.2 Building with the Forte[tm] for Java IDEThe Forte for Java IDE supports Ant build files. Just double click on the build.xml file in various directories to start a build. | ||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||