Hi Todd,

Have a look at : 

* <ear> task : http://ant.apache.org/manual/CoreTasks/ear.html
* <jar> task : http://ant.apache.org/manual/CoreTasks/jar.html

The Manifest.MF can be generated by ANT, given the dependecies
* See <manifest> task :
http://ant.apache.org/manual/CoreTasks/manifest.html

The "ear" task extends jar task and hence inherits jar task's
functionality.

Hope this helps
-Prashant

On Mon, 2007-11-26 at 20:04 -0600, Todd Patrick wrote:
> Using Ant 1.6.5
>  
> I am learning to use Ant and I have purchased Steve Holzner's Ant The
> Definitive Guide from O'Reilly books and I'm been going through the
> manual online as well.
>  
> I need to build an EAR that contains a single War and a single EJB jar
>  
> The location of the sources for both are:
>  
> /export/home/tpatrick/TestProject/MyPrjWar
> 
> /export/home/tpatrick/TestProject/MyPrjEJB
> 
> I have dependencies located in:
> 
> /export/home/tpatrick/3rd-party
> 
> How do I add my dependencies?
> 
> I think my MANIFEST.MF file should go into a directory labeled META-INF,
> how do I move a file into the directory?
> 
> So far, I've figured out that an EAR should be structured like:
> 
> MyPrj.ear
> |_ META-INF
> |  |_ MANIFEST.MF
> |_ jar
>    |_ MyPrjEJB.jar
>    |_ MyPrjWAR.war
>    |_ {The rest of my dependencies}
> 
> I'd appreciate any examples, guides or assistance that could help me
> move forward.
> 
> Thanks,
> 
> --Todd
> 
> -----------------------------------------
> NOTICE: This email message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized use, disclosure or distribution is
> prohibited. If you are not the intended recipient, please contact
> the sender by reply email and destroy all copies of the original
> message.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to