File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant Directory structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant Directory structure" Watch "Ant Directory structure" New topic

Ant Directory structure

Sumanth Tarigopula

Joined: Feb 21, 2002
Posts: 15
We are developing J2EE application that would contain number of components.
Each component would be a ear file that would contain EJB jars and war which
can be deployed in any J2EE compliant application server.
We are currently using the Bedrock framework for applications deployed in Weblogic. It provides a very robust directory structure with most of the ant targets. However it is very custom for Weblogic.
Is there a framework that provides a robust directory structure (with built ant targets) which can be deployed into Oracle Application Server.
If not, is there any standard directory structure for building J2EE applications? Any recommended source directory structure (with support for multiple Web-Apps)and why?
Any help is greatly appreciated.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33113

We're pleased to have you here with us in the Oracle forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Oracle Forum Bartender

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

There's a suggested directory layout described in the documentation for the Tomcat server at and I've successfully used this as a basis for many different server products. Ant has no problem with this sort of structure. Since 9iAS claims to be "100% compatible with Tomcat", it should do well. If not, I'll know myself soon enough.
The key is in being able to build standard deployable J2EE objects (JARs, CARs, WARs and EARs). I do this in 2 stages - first I build into a "build" directory - which usually contains my exploded webapp(s) and then collect the results of the build and produce the deployable units in a separate "dist" directory. If done with proper care, you can run both Ant and IDEs that do edit-time compiling such as Eclipse and they will work happily together.
We have an Ant forum which you may want to vist for Ant-specific help.

An IDE is no substitute for an Intelligent Developer.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33113

Moving to ant as suggested
I agree. Here's the link:
subject: Ant Directory structure
It's not a secret anymore!