Building with Ant: Introduction Tennessee

Developing Web applications using Java Servlets, JavaServer Pages, and other J2EE technologies is fun! See how to avoid many of the common growing pains of application development by using simple tools, like Ant and JUnit, and a simple directory structure.

Local Companies

Computer Services
615-252-8044
230 Willow St
Nashville, TN
Simple Solutions
(901) 289-0089
4499 Seven Valley Cove
Memphis, TN
Cyberangel Security Solutions Inc
615-837-9191
475 Metroplex DR
Nashville, TN
C M S Manufacturing Systems
615-662-3102
131 Belle Forest Cir
Nashville, TN
Impressive Publshing
423-239-4656
1400 E. Shipley Ferry Rd.
Kingsport, TN
Advanced Technical Services
615-747-5810
200 Hill Ave
Nashville, TN
Expeditors International
(901) 362-9771
5395 Distriplex Farms Drive
Memphis, TN
Advanced Network Solutions
615-277-0500
105 Broadway
Nashville, TN
Peachtree Software Support
615-256-1111
415 4th Ave S
Nashville, TN
Cbnc LLC
615-831-3270
5360 Edmondson Pike
Nashville, TN

provided by: 
Originally published at Internet.com


Developing Web Applications using Java Servlets, JavaServer Pages, and other J2EE technologies is fun! However, the more interesting your application becomes, the more complicated your build process. In this article, I will sketch out a framework for how to use simple tools (like Ant and JUnit) and a simple directory structure to avoid many of the common growing pains of application development.

Conclusion



I hate articles that make you wade through mountains of verbosity before telling you what you need to know, so I'll summarize the main points of this article right up front: * Use Ant (duh). * Use a sensible directory. * Keep your build directory totally separate from your source directory. * Store all JAR files in a common lib directory, and copy or refer to them as needed. * Plan for multiple web.xml files (they may need to change if you want to deploy on more than one server). * Make an ant build target for Unit Testing, and use it as (or from) your default target.

Ant and Its Targets



Ant is a great open-source development tool from the Jakarta Project. If you haven't already, you should go download it from http://jakarta.apache.org/ant/, follow the install instructions for your platform, and look at the manual. I strongly recommend putting the ant executable on your PATH, so you can just run "ant" from the command line. Recent versions of ant make this as easy as setting a few environment variables...

Read article at Internet.com site

Featured Local Company

Advanced Technical Services

615-747-5810
200 Hill Ave
Nashville, TN

Related Articles
- Fun with Java: Sprite Animation, Part 5 Tennessee
Baldwin shows you how to override the update method of the Component class to improve the animation quality of the program over what would normally be achieved using the default version of the update method. In the process, he shows you how to eliminate the flashing that often accompanies efforts to use the default version of the update method for animation purposes. He also shows you how to get and use an offscreen drawing context to accomplish double buffering in the drawing process.
- Java Advanced Placement Study Guide: Introduction to the Lessons, Primitive Types Tennessee
- A Peek at EJB 2.0, Part 1 Tennessee
- A Peek at EJB 2, Part 3 Tennessee
- Fun with Java: Sprite Animation, Part 7 Tennessee
- Data Structures in Java: Part 4, Purpose of Implementations and Algorithms Tennessee
- Class of the Month: The Reflection API Tennessee
- Fun with Java: Sprite Animation, Part 6 Tennessee
- Data Structures in Java: Part 1, Getting Started Tennessee
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Tennessee
Regional Articles
- Building with Ant: Introduction Antioch TN
- Building with Ant: Introduction Ashland City TN
- Building with Ant: Introduction Brentwood TN
- Building with Ant: Introduction Bristol TN
- Building with Ant: Introduction Chattanooga TN
- Building with Ant: Introduction Clarksville TN
- Building with Ant: Introduction Cleveland TN
- Building with Ant: Introduction Collierville TN
- Building with Ant: Introduction Columbia TN
- Building with Ant: Introduction Cookeville TN
- Building with Ant: Introduction Cordova TN
- Building with Ant: Introduction Crossville TN
- Building with Ant: Introduction Dickson TN
- Building with Ant: Introduction Dyersburg TN
- Building with Ant: Introduction Elizabethton TN
- Building with Ant: Introduction Franklin TN
- Building with Ant: Introduction Gallatin TN
- Building with Ant: Introduction Germantown TN
- Building with Ant: Introduction Goodlettsville TN
- Building with Ant: Introduction Greeneville TN
- Building with Ant: Introduction Harriman TN
- Building with Ant: Introduction Hendersonville TN
- Building with Ant: Introduction Hermitage TN
- Building with Ant: Introduction Hixson TN
- Building with Ant: Introduction Humboldt TN
- Building with Ant: Introduction Jackson TN
- Building with Ant: Introduction Johnson City TN
- Building with Ant: Introduction Jonesborough TN
- Building with Ant: Introduction Kingsport TN
- Building with Ant: Introduction Knoxville TN
- Building with Ant: Introduction La Follette TN
- Building with Ant: Introduction La Vergne TN
- Building with Ant: Introduction Lebanon TN
- Building with Ant: Introduction Lenoir City TN
- Building with Ant: Introduction Loudon TN
- Building with Ant: Introduction Madison TN
- Building with Ant: Introduction Martin TN
- Building with Ant: Introduction Maryville TN
- Building with Ant: Introduction Mc Minnville TN
- Building with Ant: Introduction Memphis TN
- Building with Ant: Introduction Millington TN
- Building with Ant: Introduction Morristown TN
- Building with Ant: Introduction Mount Juliet TN
- Building with Ant: Introduction Murfreesboro TN
- Building with Ant: Introduction Nashville TN
- Building with Ant: Introduction Oak Ridge TN
- Building with Ant: Introduction Old Hickory TN
- Building with Ant: Introduction Ooltewah TN
- Building with Ant: Introduction Ripley TN
- Building with Ant: Introduction Rogersville TN
- Building with Ant: Introduction Sevierville TN
- Building with Ant: Introduction Shelbyville TN
- Building with Ant: Introduction Signal Mountain TN
- Building with Ant: Introduction Smyrna TN
- Building with Ant: Introduction Soddy Daisy TN
- Building with Ant: Introduction Tullahoma TN
Related Articles
- Fun with Java: Sprite Animation, Part 5 Tennessee
Baldwin shows you how to override the update method of the Component class to improve the animation quality of the program over what would normally be achieved using the default version of the update method. In the process, he shows you how to eliminate the flashing that often accompanies efforts to use the default version of the update method for animation purposes. He also shows you how to get and use an offscreen drawing context to accomplish double buffering in the drawing process.
- Java Advanced Placement Study Guide: Introduction to the Lessons, Primitive Types Tennessee
- A Peek at EJB 2.0, Part 1 Tennessee
- A Peek at EJB 2, Part 3 Tennessee
- Fun with Java: Sprite Animation, Part 7 Tennessee
- Data Structures in Java: Part 4, Purpose of Implementations and Algorithms Tennessee
- Class of the Month: The Reflection API Tennessee
- Fun with Java: Sprite Animation, Part 6 Tennessee
- Data Structures in Java: Part 1, Getting Started Tennessee
- Formatting Messages in Java to Communicate with Legacy Systems, Part 1 Tennessee

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