Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 38384 invoked from network); 18 Oct 2007 18:59:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Oct 2007 18:59:55 -0000 Received: (qmail 53866 invoked by uid 500); 18 Oct 2007 18:59:23 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 53808 invoked by uid 500); 18 Oct 2007 18:59:23 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 53797 invoked by uid 99); 18 Oct 2007 18:59:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 11:59:23 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=DNS_FROM_AHBL_RHSBL,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.65.144.76] (HELO p02c11o143.mxlogic.net) (208.65.144.76) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 18:59:26 +0000 Received: from unknown [67.132.206.99] (EHLO donkey.hmsonline.com) by p02c11o143.mxlogic.net (mxl_mta-5.2.0-1) over TLS secured channel with ESMTP id 7fca7174.2506189744.94789.00-075.p02c11o143.mxlogic.net (envelope-from ); Thu, 18 Oct 2007 12:59:03 -0600 (MDT) Received: from asalewski.ws.hmsonline.com (asalewski.ws.hmsonline.com [10.67.90.88]) by donkey.hmsonline.com (8.13.1/8.13.1) with ESMTP id l9IIwuT6015793 for ; Thu, 18 Oct 2007 14:58:56 -0400 Received: from asalewski by asalewski.ws.hmsonline.com with local (Exim 4.63) (envelope-from ) id 1IiaZA-0006lX-P7 for users@maven.apache.org; Thu, 18 Oct 2007 14:57:56 -0400 Date: Thu, 18 Oct 2007 14:57:56 -0400 From: "Alan D. Salewski" To: users@maven.apache.org Subject: Re: Cleanup Script Message-ID: <20071018185756.GJ15428@worldnet.att.net> Reply-To: "Alan D. Salewski" Mail-Followup-To: "Alan D. Salewski" , users@maven.apache.org References: <471791C2.6010109@gmail.com> <52bab8690710181048g4f2e8af5mf2bf55911424ea81@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52bab8690710181048g4f2e8af5mf2bf55911424ea81@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Spam: [F=0.0100000000; S=0.010(2007101601); SS=0.500] X-MAIL-FROM: X-SOURCE-IP: [(unknown)] X-Virus-Checked: Checked by ClamAV on apache.org Below is a modded version of the quick and dirty 'mvn-clear-snapshots' script I have for clearing out SNAPSHOT artifacts for the project I'm currently working on. I typically run it prior to performing my first build of the day (the version I actually use decends only into the directory structure for the project I'm working on). This isn't as smart as the hypothetical one that Wayne suggests (mine doesn't keep the latest version around). But if you know that someone (or something) can be counted on to deploy a snapshot build before too long, anyway, maybe it will work "good enough" for you. -Al ----------------------------------8<----------------------------------- #!/bin/sh set -x M2_REPO_PATH="${HOME}/.m2/repository" if ( find "${M2_REPO_PATH}" -type d -name '*SNAPSHOT*' > /dev/null 2>&1 ); then find "${M2_REPO_PATH}" -type d -name '*SNAPSHOT*' -print0 | \ xargs --null -I '{}' rm -vfr {} fi ----------------------------------8<----------------------------------- On Thu, Oct 18, 2007 at 12:48:47PM -0500, Wayne Fay spake thus: > Not that I've seen, but when you write it later today, maybe you won't > mind contributing it back via this list and/or the Wiki for the > benefit of future users? ;-) > > It should be a simple script -- for all directories, if this is a > snapshot version, find latest and delete (or move) the rest. Then run > it via cron. > > Wayne > > On 10/18/07, Thomas Jackson wrote: > > We have an internal repository and are constantly deploying snapshots > > throughout the day. We want to clean these nightly(to preserve space) > > and I was wondering if anyone had a shell script already written that > > will cleanup snapshots nightly? > > > > Thanks > > Thomas Jackson > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > > For additional commands, e-mail: users-help@maven.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > -- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: Alan D. Salewski Software Developer Health Market Science, Inc. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org