Building with Ant: Directory Structure South Carolina

In Part 2 of our series, Chaffee discusses the importance of a clean and orderly project directory structure - and provides tips on creating a solid foundation for structures that can scale to large teams using version control and multiple releases.

Local Companies

Pinnacle Consulting LLC
803 629 5243
98 Groves Wood Ct
Columbia, SC
Net Solutions Technology Center Llc
(843) 525-6469
38 Sams Point Rd
Beaufort, SC
Sterling Software Systems Inc
(803) 407-3680
130 Centrum Dr
Irmo, SC
Transyst Inc
(843) 235-2600
Pawleys Island, SC
Integration Specialists
(803) 781-5758
401 Western Ln
Columbia, SC
Charlotte Web Design & Development
(704) 577-8242
Commodore point rd
Lake Wylie, SC
Coastal Technology Group/CTG Consulting
(704) 609-4091
4522 Firethorne Drive
Murrells Inlet, SC
Byte Software Llc
(864) 288-7206
317 New Neely Ferry Rd
Mauldin, SC
Friendly Computers
(843) 236-0909
Myrtle Beach, SC
Capital Software Consultants
(803) 738-7027
2700 Middleburg Dr Ste 218
Columbia, SC

provided by: 
Originally published at Internet.com


Recap



In the first part of this series, we established an Ant build file with the following targets: init, clean, compile, test, javadoc, webapp, and war. Now, we will examine the directory structure in which these tasks do their work.

The Directory Structure



The foundation of any build process is the project directory structure. A messy project directory, cluttered with files dropped willy nilly into whatever directory the "file save" dialog happened to open up with, leads to arcane and bug-prone build scripts. On the other hand, if you try to organize too compulsively, you can end up with a byzantine nest of sub-sub-subdirectories that make it tedious to find the files you're looking for.

Here, I sketch what I think is a good foundation or skeleton for a project directory structure that can scale to large teams using version control and multiple releases. Directory Structure: myproject/ project root directory (run all tools from here) build.xml Ant build file deploy-dev.sh script to deploy your app to your development server deploy-live.sh script to deploy your app to your production (live) server lib/ jar files required for build src/ Java source code for servlets and utilities web/ Web files (html, jsp, etc.) conf/ configuration files web-dev.xml Webapp config file for development server web-live.xml Webapp config file for production (live) server build/ files compiled/copied into here (this directory can be safely deleted) webapp/ the build destination for the web application WEB-INF/ conf/web.xml etc. will be copied into here during build classes/ class file root for servlets and utilities lib/ jar files required for running app (usually a subset of the ones in myproject/lib) test/ directory used by unit test classes to create test files; can be safely deleted after build ...

Read article at Internet.com site

Featured Local Company

Charlotte Web Design & Development

7045778242
Commodore point rd
Lake Wylie, SC
http://www.charlottewebdevelopment.com

Regional Articles
- Building with Ant: Directory Structure Aiken SC
- Building with Ant: Directory Structure Anderson SC
- Building with Ant: Directory Structure Beaufort SC
- Building with Ant: Directory Structure Bennettsville SC
- Building with Ant: Directory Structure Bluffton SC
- Building with Ant: Directory Structure Boiling Springs SC
- Building with Ant: Directory Structure Charleston SC
- Building with Ant: Directory Structure Clemson SC
- Building with Ant: Directory Structure Clover SC
- Building with Ant: Directory Structure Columbia SC
- Building with Ant: Directory Structure Conway SC
- Building with Ant: Directory Structure Darlington SC
- Building with Ant: Directory Structure Dillon SC
- Building with Ant: Directory Structure Easley SC
- Building with Ant: Directory Structure Florence SC
- Building with Ant: Directory Structure Fort Mill SC
- Building with Ant: Directory Structure Fountain Inn SC
- Building with Ant: Directory Structure Gaffney SC
- Building with Ant: Directory Structure Gaston SC
- Building with Ant: Directory Structure Georgetown SC
- Building with Ant: Directory Structure Goose Creek SC
- Building with Ant: Directory Structure Greenville SC
- Building with Ant: Directory Structure Greenwood SC
- Building with Ant: Directory Structure Greer SC
- Building with Ant: Directory Structure Hartsville SC
- Building with Ant: Directory Structure Hilton Head Island SC
- Building with Ant: Directory Structure Inman SC
- Building with Ant: Directory Structure Irmo SC
- Building with Ant: Directory Structure Ladson SC
- Building with Ant: Directory Structure Lancaster SC
- Building with Ant: Directory Structure Laurens SC
- Building with Ant: Directory Structure Lexington SC
- Building with Ant: Directory Structure Manning SC
- Building with Ant: Directory Structure Moncks Corner SC
- Building with Ant: Directory Structure Mount Pleasant SC
- Building with Ant: Directory Structure Murrells Inlet SC
- Building with Ant: Directory Structure Myrtle Beach SC
- Building with Ant: Directory Structure Newberry SC
- Building with Ant: Directory Structure North Augusta SC
- Building with Ant: Directory Structure North Charleston SC
- Building with Ant: Directory Structure Orangeburg SC
- Building with Ant: Directory Structure Pickens SC
- Building with Ant: Directory Structure Piedmont SC
- Building with Ant: Directory Structure Rock Hill SC
- Building with Ant: Directory Structure Seneca SC
- Building with Ant: Directory Structure Simpsonville SC
- Building with Ant: Directory Structure Spartanburg SC
- Building with Ant: Directory Structure Summerville SC
- Building with Ant: Directory Structure Sumter SC
- Building with Ant: Directory Structure Taylors SC
- Building with Ant: Directory Structure Travelers Rest SC
- Building with Ant: Directory Structure Walterboro SC
- Building with Ant: Directory Structure West Columbia SC
Related Local Event
Information Technology Council
Dates: 11/10/2009 - 11/10/2009
Location: Greater Columbia Chamber of Commerce
Columbia, SC
View Details

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