Re: [plexus work] archiva-checksums

2008-04-11 Thread Joakim Erdfelt
I've made all of the changes. I'll let it percolate over the next 24 hours (or so) and then integrate it into trunk. - Joakim

Re: [plexus work] archiva-checksums

2008-04-11 Thread Joakim Erdfelt
Brett Porter wrote: - I think it can use more tests Agreed. Have any special use cases you want fleshed out? Nah, just coverage for the other classes. Will do. - what about passing referenceFile as a final field, since every method uses it? I started ChecksumFile as a utility class,

Re: [plexus work] archiva-checksums

2008-04-11 Thread Brett Porter
On 12/04/2008, at 12:36 PM, Joakim Erdfelt wrote: Brett Porter wrote: Looks good to me. I say roll it into trunk. A couple of uncertainties: - isn't doFinal required? doFinal ? sorry, got confused with JCE :) it's digest() in MessageDigest, which is there. - I think it can use mor

Re: [plexus work] archiva-checksums

2008-04-11 Thread Joakim Erdfelt
Brett Porter wrote: Looks good to me. I say roll it into trunk. A couple of uncertainties: - isn't doFinal required? doFinal ? - I think it can use more tests Agreed. Have any special use cases you want fleshed out? Here's some nitpicking that might reduce the amount of code and make

Re: [plexus work] archiva-checksums

2008-04-11 Thread Brett Porter
Looks good to me. I say roll it into trunk. A couple of uncertainties: - isn't doFinal required? - I think it can use more tests Here's some nitpicking that might reduce the amount of code and make it clearer: - rename Hash to ChecksumAlgorithm (might as well be consistent and use checksum

Re: [plexus work] archiva-checksums

2008-04-09 Thread Joakim Erdfelt
Not sure I understand what you are asking. :-( There was a suggestion in the #archiva irc channel that we should offer the code in archiva-checksum to the commons-codec project. An idea I fully support, but have no idea how to proceed with. ;-) Also, Brett asked a passing question about how

Re: [plexus work] archiva-checksums

2008-04-08 Thread James William Dumay
Joakim, Is this based on any work from commons or have you implemented this stuff from whats provided in the JDK? James On Tue, 2008-04-08 at 21:54 -0700, Joakim Erdfelt wrote: > Joakim Erdfelt wrote: > > I've been taking a stab and removing some of our dependencies on > > various plexus compone

Re: [plexus work] archiva-checksums

2008-04-08 Thread Joakim Erdfelt
Joakim Erdfelt wrote: I've been taking a stab and removing some of our dependencies on various plexus components. First up, plexus-digest. I've taken the varied code from many locations and come up with a stand alone archiva-checksum lib/component that I hope to be able to integrate into arc

[plexus work] archiva-checksums

2008-04-08 Thread Joakim Erdfelt
I've been taking a stab and removing some of our dependencies on various plexus components. First up, plexus-digest. I've taken the varied code from many locations and come up with a stand alone archiva-checksum lib/component that I hope to be able to integrate into archiva/trunk. So ... uh