public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
* [Per Bothner <per@bothner.com>] Re: forwarded message from Adam Heath
@ 2001-10-25 18:26 Tom Tromey
  2001-10-25 21:32 ` Alexandre Petit-Bianco
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2001-10-25 18:26 UTC (permalink / raw)
  To: rhug-rhats

This is undoubtedly the cause of the jar problem we were seeing.
fastjar's `u' option doesn't work.

Tom
------- Start of forwarded message -------
Message-ID: <3BD8A174.2030104@bothner.com>
Date: Thu, 25 Oct 2001 16:34:12 -0700
From: Per Bothner <per@bothner.com>
MIME-Version: 1.0
To: 116145@bugs.debian.org
CC: java@gcc.gnu.org
Subject: Re: forwarded message from Adam Heath
References: <15320.39495.965333.183669@gargle.gargle.HOWL>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii; format=flowed

Matthias Klose wrote:

>Not only does fastjar obliterate existing contents in a jar when updating,
>but, it appears it can also corrupt the file.
>
Yes, I ran into the same problem.  Basically the implementation of 'u'
is pretty much not there.  I looked at trying to fix it, but decided I 
didn't
have time.  Until somebody fixes it, we should change fastjar to exit 
with an
error on 'u'.

The first question is whether fastjar should try to update
in place or create a temporary file and copy it over.  The former is faster,
especially when just adding files, and is less liable to run out of disk 
space.
However, it is tricky when files are replaced that are not at the end. 
 In that
case I guess the solution is to read the archive members that need to be 
moved
into main memory.

Then it is just a small matter of programming ...

------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Per Bothner <per@bothner.com>] Re: forwarded message from Adam Heath
  2001-10-25 18:26 [Per Bothner <per@bothner.com>] Re: forwarded message from Adam Heath Tom Tromey
@ 2001-10-25 21:32 ` Alexandre Petit-Bianco
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Petit-Bianco @ 2001-10-25 21:32 UTC (permalink / raw)
  To: rhug-rhats

Tom Tromey writes:

> This is undoubtedly the cause of the jar problem we were seeing.
> fastjar's `u' option doesn't work.

I noticed that u wasn't working as advertised. I tried with or without
augmenting the archive and it wouldn't work in both cases.

Now I don't see any problems with the archive.

./A

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-25 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-25 18:26 [Per Bothner <per@bothner.com>] Re: forwarded message from Adam Heath Tom Tromey
2001-10-25 21:32 ` Alexandre Petit-Bianco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).