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 in Sun One: problem 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 in Sun One: problem" Watch "Ant in Sun One: problem" New topic
Author

Ant in Sun One: problem

John Summers
Ranch Hand

Joined: Oct 06, 2003
Posts: 125
Hi all,
Just started my new job. We are using Sun One v7 and have taken the Ant script from the 'jdbc' example that came with sun one. We are using it to build and deploy our web application.
The problem is that this script expects there to be EJBs. we do not have any. This is where our build files are:
\src-
-ejb\ (empty)
-jsp\ our jsp pages
-classes\- our other classes
-ejb-jar.xml, sun-ejb-jar.xml, application.xml, build.xml, sun-web.xml, web.xml
When we build we navigate to the src level and type 'asant'. Thus ant looks in ejb-jar.xml and sun-ejb-jar.xml and gets antsy because there are no 'ejb' nodes. How can I tell ant that we dont want any EJBs at all. Does anyone know how to amend the standard j2ee ant script? (sorry i have no experience with ant ).
thks
john
 
jQuery in Action, 2nd edition
 
subject: Ant in Sun One: problem
 
Similar Threads
MDB in EJB 3.0 and JBOSS AS 6.1 final
new to ejb, help needed for ejb-jar.xml
Let us start this project
Up-to-date checks with macros
Simple Build Ant Script