Building with Ant: Deployment and Distribution Rhode Island

We wrap up our lessons on working with this open-source development tool from the Jakarta Project by looking at some advanced issues - multiple deployment targets, versioning, and source distribution.

Local Companies

Lighthouse Computer Service
(401) 334-0799
6 Blackstone Valley Pl Ste 205
Lincoln, RI
Roplab It Solution
(401) 369-7116
2 Devon St
Providence, RI
Dg Computer Consulting
(401) 766-5523
16 Bruce Dr
North Smithfield, RI
Certified Computer Consulting
(401) 615-5378
28 Sunset Ave
West Warwick, RI
Pro-Saap Llc
(401) 228-6016
65 Valley View Dr
Cranston, RI
Unicom
(401) 235-9100
1026 Park East Dr
Woonsocket, RI
Ciber Inc
(401) 454-4910
235 Promenade St Rm 417
Providence, RI
Design Net Inc
(401) 334-4602
21 Powder Hill Rd
Lincoln, RI
Champion Technologies
(401) 823-9998
Coventry, RI
Process Technologies Inc
(401) 273-8324
920 Hartford Ave
Johnston, RI

provided by: 
Originally published at Internet.com


"Ah, to build, to build!
That is the noblest art of all the arts."
- Henry Wadsworth Longfellow

Review Part 1

Review Part 2

In this installment, we discuss issues of deployment and distribution. We are continuing to use the build.xml file from a real, working Web application - please download it and follow along.

Deploying Locally



These days, it is trivial to run a servlet container on your workstation. This should be your first line of deployment. Before you push your application to any other servers, you should deploy it locally and look it over. (It is also a good idea to run acceptance tests on the locally running site, using a test framework like HTTPUnit.)

A Web application is just a bunch of files in a directory. At its heart, deployment is simply a matter of copying those files to the right place and letting your servlet container know that you've done so.

In the case of a local servlet container, the first step - copying the files - is already done! Remember, our webapp target created a directory inside of build that contains all the files of the Web application. All we need to do now is tell our servlet container where these files are. For Tomcat, that's as easy as adding a single line to TOMCAT_HOME/conf/server.xml: ...

Read article at Internet.com site

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML