my dog learned polymorphism*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 19725
    
  20

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to create EAR file using ant script? (automatic discover of dependency)