Java™ Pet Store Demo 1.4 > Building the Demo |
Note: The Java Pet Store Demo
bundle comes with pre-built binaries. To deploy these binaries and avoid
building the application, consult the installation
instructions. |
Property Name |
Description |
Examples |
pathsep |
The OS dependent path seperator |
; (on Windows) or :
(on Unix) |
dirsep |
The OS dependent dir seperator |
\ (on Windows) or /
(on Unix) |
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:
asant [argument]
cd <petstore.home>\srcWhen the build script, build.xml, is invoked without any arguments, all the application binaries are built. The binaries are placed in the following folders:
asant [argument]
<petstore.home>/src/apps/admin/build/petstoreadmin.earThe following table lists possible arguments for the top-level build script:
<petstore.home>/src/apps/opc/build/opc.ear
<petstore.home>/src/apps/petstore/build/petstore.ear
<petstore.home>/src/apps/supplier/build/supplier.ear
and copied to top level directory for convience:
<petstore.home>/petstoreadmin.ear
<petstore.home>/opc.ear
<petstore.home>/petstore.ear
<petstore.home>/supplier.ear
Arguments for asant
Option | Purpose |
---|---|
core | Builds everything. (This is the default build target.) |
clean | Cleans out the build output directories. |
deploy | Deploys the application binaries. |
undeploy | Undeploys the application binaries. |
verify |
Verifies the application binaries. |
docs | Builds the application Javadocs. |
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.
Copyright © 2004 Sun Microsystems, Inc. All Rights Reserved.