avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mircea Toma" <mirceat...@home.com>
Subject Re: sar undeployment implementation
Date Sun, 07 Oct 2001 02:03:22 GMT

----- Original Message -----
From: "Peter Donald" <donaldp@apache.org>
To: "Avalon Development" <avalon-dev@jakarta.apache.org>
Sent: Saturday, October 06, 2001 12:21 AM
Subject: Re: sar undeployment implementation


> On Tue, 2 Oct 2001 13:08, Mircea Toma wrote:
> > Hi,
> >
> > Attached you can find the implemention for sar undeployment!
>
> Cool - I applied most of it except for uninstallation part. The reason was
> that we don't want uninstallation to delete whole tree because apps may be
> storing data in there (ie james stores it's mail spool there). I just
issued
> an error message for the time being.

Ok!

>
> What we should do is something like the following. When installing we
create
> a list of files we install. Each file we copy we should copy via a
> DigestOutputStream and then get a MessageDigest of each file. So after we
> install these files we create an installation "transcript" that looks like
>
> blocks/cornerstone.bar &jG%Jp(64H
>
> with one file + digest per line.
>
> Then when we goto uninstall we only try to delete the files actually
> installed. And we make sure they haven't been modified by getting their
> digest and if they have been modified we skip deletion.

Got it!... One question though, if we don't have to unjar the .sar files in
the future there will be no need to do this step. Then I would better try to
work on the VFS or a protocol handler that will allow to read nested jars.
Maybe you can explain how do you see it done?!

Mircea

>
> --
> Cheers,
>
> Pete
>
> -------------------------------------------------------
> To fight and conquer in all your battles is not supreme
> excellence; supreme excellence consists in breaking the
> enemy's resistance without fighting. - Sun Tzu, 300 B.C.
> -------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message