Hi,

Thanks Keith.  I tried to do this using touch, however, this did not
work because the date time stamp does not go down to milliseconds...

Andreas

-----Original Message-----
From: Keith Hatton [mailto:[EMAIL PROTECTED] 
Sent: Monday, 16 May 2005 12:27
To: Ant Users List
Subject: RE: updating jar file with existing file: overwrite?

Andreas,

update="true" can be used on <jar> etc.
Make sure that the "new" versions of the files you wish to include
really do have later date/time stamps as that is the basis for applying
the update.
Of course, underneath Ant is extracting and recreating the archive as
you describe.

Hope this helps
Keith


-----Original Message-----
From: Andreas Bothner [ MTN - Innovation Centre ]
[mailto:[EMAIL PROTECTED] 
Sent: 16 May 2005 09:43
To: user@ant.apache.org
Subject: updating jar file with existing file: overwrite?


Hi,

 

I have an ear archive that contains an application.xml file which I need
to replace.  The jar, zip, and ear tasks all do not provide the
functionality of replacing the file as far as I can see.  The duplicate
argument only takes "fail", "skip" and "add" as arguments.

 

Does anybody know how I can do this, or do I have to extract the entire
archive, replace the file and recreate the archive?

 

Regards,

Andreas



NOTE: This e-mail message is subject to the MTN Group disclaimer see
http://www.mtn.co.za/default.aspx?pid=34411


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



NOTE: This e-mail message is subject to the MTN Group disclaimer see 
http://www.mtn.co.za/default.aspx?pid=34411


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

Reply via email to