This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant for generating and deploying a java based web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant for generating and deploying a java based web application" Watch "ant for generating and deploying a java based web application" New topic
Author

ant for generating and deploying a java based web application

bobby chaurasia
Ranch Hand

Joined: Mar 30, 2002
Posts: 84
I will be using ant to create a war file to be deployed into the application server. Its a java based application.
Is there any standard alternatively Can somebody give me some insights into how I should organize my files, give that it will contain the following:
1) jsp files
2) java files in different packages
3) jar files for various api's
4) tld files
5) image files
6) pdf files
Thanks

it wil contain the java files
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I generally organize my folders as follows:
1. JSPs, static web content, etc. go into a folder organized in the fashion that I want it organized on the site.
2. Configuration files (struts-config, web.xml, tlds) go in a configuration folder.
3. Any jars that need to be in the the WEB-INF/lib folder go into a folder called library.
4. My source code goes into a folder called src. It is organized in that folder by package.
5. My unit testing source code goes in a folder called test.


Matthew Phillips
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
My answer to this other question tiues to summarize my approach to this problem. It may be useful.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
wood burning stoves
 
subject: ant for generating and deploying a java based web application
 
Similar Threads
App stops logging after 10 minutes
Is the Lomboz a Substitute For the ANT
Ant Script for removing java files from a jar.
Sample Build script
Deploy Application on SUN Solaris Using ANT