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 EJB and other Java EE Technologies and the fly likes How to create EAR file using ant script? (automatic discover of dependency) 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 » Java » EJB and other Java EE Technologies
Bookmark "How to create EAR file using ant script? (automatic discover of dependency)" Watch "How to create EAR file using ant script? (automatic discover of dependency)" New topic
Author

How to create EAR file using ant script? (automatic discover of dependency)

rajesh oomana
Greenhorn

Joined: Dec 11, 2013
Posts: 1
Hello all,

I am new to Ant script, however I have created a simple ant script to create class files, but I am not able to create EAR file from those class files. Below is my folder architecture



Now I want to create EAR file for project 3 it consumes all packages from project 1, and package 3 from project 2 (package 4 is not consumed), please help me to create EAR file for the above folder structure using Ant build system.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

I would switch from Ant to Maven. It has much better support for what you want. At work I create EARs with Maven quite often, and without any effort.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create EAR file using ant script? (automatic discover of dependency)
 
Similar Threads
importing packages in a class
running java program from command line
Compiling Pacakage
using javadoc
Eclipse v3 and package Explorer