Hi guys,

Steve kindly sent this email to me a while back and I should have forwarded it to you who are working on Cactus. So here it is a bit late though. Sorry about that. Maybe it can still be useful in some way.

Thanks
-Vincent

Begin forwarded message:

From: Steve Loughran <[EMAIL PROTECTED]>
Date: November 6, 2006 10:16:10 PM CEST
To: Vincent Massol
Subject: forthcoming changes to <war> in Ant

Vince,

I ought to warn you of some coming (and not yet finalized) changes to
the <war> task in Ant1.7, which you will see in the next beta.

I've modified <war> so that it doesnt require a web.xml any more, as
it is now optional in servlet2.5

if you set the attribute needxmlfile=false. The default is true; <war>
fails if there is no webxml attribute and it is updating in situ. It
also tries to be a bit cleverer about complaining if there are
multiple references to the same web.xml file in the WAR; it should
stop telling you off if the exact same file is pulled in via a fileset
as well as the webxml attribute.

If you set needxmlfile=false and pull in a web.xml file, the task now
warns you. I may also tweak EAR to do the same thing with
application.xml

This behaviour isnt frozen yet. I think <cactifywar> and <cactifyear>
extend or use the ant tasks, and dont want to break them. If you want
absolute control of what is going on, the <jar> task is your best bet.
Now that webxml/application.xml are optional, there's much less need
for the <war>/<ear> tasks, that are just conveniences.

-steve



        

        
                
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com

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

Reply via email to