Hi Arnaud, You can only activate one of them (if the # of days old is > 0, then purge by # of days old; otherwise, purge by retention count). However, the purge by # of days old would always respect the value that is set in the retention count. So the answer to your question is no..
In the purge by # of days old, the number of actual artifacts in the version directory would always be checked first against the retention count before checking if the artifact's age falls within the # of days old set. So if the retention count is 2, the # of days old is 20 and you have 4 artifacts that are all more than 20 days old, the latest 2 will still be retained because you have a retention count of 2. This means that you can only have less snapshots than the retention count if and only if the number of actual artifacts before the purge is less than the retention count. Hope that's clearer :-) I'll update the purge section in the docs and try to make it more reader friendly. I also got a little confused after reading it (and i was the one who wrote it hehe). Also, I think I've missed putting the purge activation part in the docs. -Deng On Thu, Mar 6, 2008 at 1:36 AM, Arnaud HERITIER <[EMAIL PROTECTED]> wrote: > Hi all, > > I read the documentation about repository purge ( > http://maven.apache.org/archiva/docs/1.0.1/adminguide/repositories.html) > but > I have always a doubt. If I activate both rules to purge the repository > (days older and retention count), archiva will apply both of them thus I > can > for example have less snapshots than the retention count if there's no > enough of them which have the minimal days older ? > Is that right ? > > .......................................................... > Arnaud HERITIER > .......................................................... > OCTO Technology - aheritier AT octo DOT com > www.octo.com | blog.octo.com > .......................................................... > ASF - aheritier AT apache DOT org > www.apache.org | maven.apache.org > ........................................................... >
