You don't need to make any modifications to the build.sh file. 
The  build.xml file, however, must be customized slightly so it can be used by your 
application. Fortunately, you need to modify only a few lines to change the application name 
and to set the destination path indicating where Ant should deploy the application. You can 
make the changes by opening the build.xml file with a text editor, such as emacs. 
The following lines give an example for the modification that is consistent with the folder 
names introduced above. 
Note: The build.xml file contains detailed information on how to customize the file. 
Then, add the initial build files to the source code repository from your local myApp/ 
directory with the following commands: 
$ cd ~/myApp
$ cvs add build.xml
$ chmod a+x build.sh
(this command makes the build script executable)
$ cvs add build.sh
$ cvs commit  m "Initial build script files added."
With the completion of Step 3, the preparation of the source code repository is complete. All 
developers can now check out the source code with cvs co {application name}, add new files to 
the repository with cvs add and cvs commit, or build the application using the build.sh script.  
The last part of the set up process is the configuration of Tomcat and the application itself, so 
Tomcat can recognize it, and the application can be accessed through web browsers once it is 
built. 
35 




Java Web Hosting Application Development Using Java Technologies Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.