Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant Directory structure

 
Sumanth Tarigopula
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
Thanks
Sumanth
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"starigopula",
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.
Thanks,
Jeanne
Oracle Forum Bartender
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a suggested directory layout described in the documentation for the Tomcat server at http://jakarta.apache.org/tomcat 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to ant as suggested
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic