Basically when you call your war task the first time to create it, you can call a war task a 2nd time and use its update attrib: Using Apache Ant's "core task" war examples:
This is the first time you start a war task:
<war destfile="myapp.war" webxml="src/metadata/myapp.xml">
 <fileset dir="src/html/myapp"/>
 <fileset dir="src/jsp/myapp"/>
 <lib dir="thirdparty/libs">
   <exclude name="jdbc1.jar"/>
 </lib>
 <classes dir="build/main"/>
 <zipfileset dir="src/graphics/images/gifs"
             prefix="images"/>
</war>

The 2nd time you start it...the dest file will be the same file you just created except now you have an update attribule set to true to prevent over wirting the file.
<war destfile="myapp.war" webxml="src/metadata/myapp.xml" update"true" >
<NOW IN HERE YOU POINT TO THE NEW FILES TO BE PACKAGED INTO THE SAME WAR FILE>
</war>

I hope this answered your question, unless I totally misunderstood it.


----Original Message Follows----
From: "Kaur, Jasneet" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <user@ant.apache.org>
To: "Ant Users List" <user@ant.apache.org>
Subject: RE: Adding jar files to already existing war files
Date: Wed, 22 Mar 2006 12:25:29 +0530
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by bay0-mc3-f15.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 21 Mar 2006 22:55:19 -0800
Received: (qmail 20772 invoked by uid 500); 22 Mar 2006 06:55:17 -0000
Received: (qmail 20761 invoked by uid 99); 22 Mar 2006 06:55:17 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 22:55:17 -0800 Received: pass (asf.osuosl.org: domain of [EMAIL PROTECTED] designates 155.56.68.140 as permitted sender) Received: from [155.56.68.140] (HELO smtpde03.sap-ag.de) (155.56.68.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 22:55:16 -0800 Received: from sap-ag.de (smtpde03) by smtpde03.sap-ag.de (out) with ESMTP id HAA15586 for <user@ant.apache.org>; Wed, 22 Mar 2006 07:54:51 +0100 (MEZ)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.3 required=10.0tests=MAILTO_TO_SPAM_ADDR,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
Thread-Topic: Adding jar files to already existing war files
Thread-Index: AcZNe0U+l7Poc9xDTmCJB+CZCbsY4QAAiEEw
X-OriginalArrivalTime: 22 Mar 2006 06:55:09.0073 (UTC) FILETIME=[8EEC2810:01C64D7D]
X-SAP: out
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]

 No actually it's a daily task (part of a build process)
So need to do it every time a build is made
Could you please elaborate on war task's update attribute???

Thanks !!!!!
Best regards,
Jasneet.


-----Original Message-----
From: Res Pons [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 22 March 2006 12:10 PM
To: user@ant.apache.org
Subject: RE: Adding jar files to already existing war files

If this is a one time deal, rather than resorting to Ant tasks, use
JDK's/bin/jar utility or command to accomplish this.  Otherwise, if this
is
to be done every time through your ant file, then you have to use the
war
task's 'update' attribute to accomplish this.

----Original Message Follows----
From: "Kaur, Jasneet" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <user@ant.apache.org>
To: <user@ant.apache.org>
Subject: Adding jar files to already existing war files
Date: Wed, 22 Mar 2006 12:03:07 +0530
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc3-f19.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830);
Tue, 21
Mar 2006 22:33:11 -0800
Received: (qmail 3803 invoked by uid 500); 22 Mar 2006 06:33:10 -0000
Received: (qmail 3792 invoked by uid 99); 22 Mar 2006 06:33:09 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 22:33:09 -0800
Received: pass (asf.osuosl.org: domain of [EMAIL PROTECTED]
designates
155.56.68.170 as permitted sender)
Received: from [155.56.68.170] (HELO smtpde02.sap-ag.de) (155.56.68.170)

by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 22:33:09 -0800
Received: from sap-ag.de (smtpde02)  by smtpde02.sap-ag.de (out) with
ESMTP
id HAA04211  for <user@ant.apache.org>; Wed, 22 Mar 2006 07:32:44 +0100
(MEZ)
X-Message-Info: 6sSXyD95QpV62e7x8pY+7bdO1a30yZc9Z0qef3k5/ns=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=-0.0
required=10.0tests=SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
Thread-Topic: Adding jar files to already existing war files
Thread-Index: AcZNeSWOw4woMLgXQB6lNFy40lrtPwAAI+WQ
X-OriginalArrivalTime: 22 Mar 2006 06:33:00.0419 (UTC)
FILETIME=[76FBA530:01C64D7A]
X-SAP: out
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]

Hi,
I want to add jar files to an existing war file ensuring there is no
change in the menifest file

Anyhelp is highly appreciated
Thanks in anticipation
Regards
Jasneet.

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

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how
to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


---------------------------------------------------------------------
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]

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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

Reply via email to