Building and Packaging the Example Application
This section describes how to build the example application.
Building and Packaging the Example Application Using Ant
Building and Packaging firstcup-dukes-age Using Ant
This task builds firstcup-dukes-age and creates a WAR file, firstcup-dukes-age.war, in the dist directory.
- Verify that you have added the Ant build tool that comes with the Application Server to your path. The location is the lib/ant/bin directory of your Application Server installation.
- In a terminal, go to <INSTALL>/firstcup/example/firstcup-dukes-age.
- Enter the following command:
ant
You should see Build Successful when the command finishes.
Deploying firstcup-dukes-age.war Using Ant
This task gives instructions on deploying firstcup-dukes-age.war using Ant.
- Start the Application Server if you haven't already. Refer to your Application Server documentation if you are not sure how to start the server.
- In a terminal go to <INSTALL>/firstcup/example/firstcup-dukes-age.
- Enter the following command:
ant deploy
You should see Build Successful when the command finishes.
Building and Packaging DukesBirthdayBean and firstcup Using Ant
- In a terminal, go to <INSTALL>/firstcup/example/firstcup.
- Enter the following command:
ant
You should see Build Successful when the command finishes.