Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
rajesh oomana
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic