Java (TM) Adventure Builder Refernce Application - V1.0 > Building the Demo           
Java BluePrints

Asant and Ant

We use script asant, which is located in the J2EE 1.4 SDK bin directory, to build the source code of this application. asant is a wrapper around Ant which is a Java-based build tool like make, which has been developed under the auspices of the Apache Software Foundation. Ant version 1.5.3 and 1.6 beta 1 may also be used to build and deploy the applications.


Note: The Java (TM) Adventure Builder Reference application bundle comes with pre-built binaries. To deploy these binaries and avoid building the application, consult the installation  instructions.    


Building Adventure Builder Reference Application v1.0

This section explains how to build the application binaries for the Java (TM) Adventure  Builder Reference application. Building all the application binaries and performing other tasks with Ant involves invoking asant from <adventure.home>/src  directory of the demo installation. 

To build the application binaries on Unix, open a shell prompt and enter these commands:

cd <adventure.home>/src
asant [argument]
To build the application binaries on Windows, open a shell prompt and enter these commands:
cd <adventure.home>\src
asant [argument]
For the above command to work, your PATH environment variable must have been set as explained in the installation instructions and the ANT_HOME environmentvariable, if any, should not point to any other version of ant that migh be on your system. When asant is invoked without any arguments, all the application binaries are built. The binaries are placed in the following folders:
<adventure.home>/src/apps/consumerwebsite/build/ConsumerWebsite.ear

<adventure.home>/src/apps/opc/build/OPC.ear

<adventure.home>/src/apps/bank/build/Bank.ear

<adventure.home>/src/apps/activitysupplier/build/ActivitySupplier.ear

<adventure.home>/src/apps/airlinesupplier/build/AirlineSupplier.ear

<adventure.home>/src/apps/lodgingsupplier/build/LodgingSupplier.ear

and copied to top level directory for convenience:

<adventure.home>/ConsumerWebsite.ear

<adventure.home>/OPC.ear

<adventure.home>/Bank.ear

<adventure.home>/ActivitySupplier.ear

<adventure.home>/AirlineSupplier.ear

<adventure.home>/LodgingSupplier.ear

The following table lists possible arguments when invoking asant :

Option Purpose
core Builds everything. (This is the default build target.)
cleanall Cleans out the build output directories.
deploy-apps Deploys the application binaries.
undeploy-apps Undeploys the application binaries.
verify-apps Verifies the application binaries.
all Builds everything, including javadocs.
setup Configures Database connections, JMS resources.
unsetup Unconfigures database connections, JMS resources.
create-javamail-resource Create the JavaMail resource.
delete-javamail-resource Delete the JavaMail resource.

Copyright © 2004 Sun Microsystems, Inc. All Rights Reserved.