ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <>
Subject RE: Updating JARS then WAR and at least EAR files using Ant
Date Mon, 04 Aug 2003 15:29:24 GMT

I have the similar issue...the way I chose to handle it (may not be the best
way but it's the easiest for me :-) is to rebuild the ears, versus unpacking
making changes and repacking- less hassle and the time it takes to rebuild
it is minimal. Also, this way I don't have to worry about forgetting
something. The build [execution] flow is compile all classes, jar them up,
create wars then create ears. We have one "main" build file that calls
others to build their piece of the puzzle. We have also enabled the ability
to build one "component" at a time (jar, war, ear). You could accomplish
this by using the target depends attribute or by using the <ant>, <antcall>
tasks or by using a number of 3rd party/external's really up to
your imagination/creativity. This list will also be an invaluable
asset...tons of great ideas and great people.


-----Original Message-----
From: Philippe Waltregny [] 
Sent: Monday, August 04, 2003 10:06 AM
Subject: Updating JARS then WAR and at least EAR files using Ant

Here's my problem.
I've an EAR file which contains a WAR file. This WAR file contains some JAR
files as librairies. I've to update some JAR files, and consequently both
the WAR and the EAR files.
How to do each of these updates using Ant?
Is it possible to do it without having to explode both the EAR and the WAR
files into a directories structure, then to make changes, then to recreate
both the WAR and the EAR files?
Thank you in advance.
Philippe Waltregny

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message