You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by js...@apache.org on 2007/09/04 16:44:45 UTC

svn commit: r572692 - /activemq/scripts/activemq-snapshots-clean.sh

Author: jstrachan
Date: Tue Sep  4 07:44:45 2007
New Revision: 572692

URL: http://svn.apache.org/viewvc?rev=572692&view=rev
Log:
Applied the excellent patch from Dejan Bosanac to avoid deleting the last ever snapshot release! See: http://www.nabble.com/Re%3A-Missing-jars-in-maven-repo--p12478310s2354.html

Modified:
    activemq/scripts/activemq-snapshots-clean.sh

Modified: activemq/scripts/activemq-snapshots-clean.sh
URL: http://svn.apache.org/viewvc/activemq/scripts/activemq-snapshots-clean.sh?rev=572692&r1=572691&r2=572692&view=diff
==============================================================================
--- activemq/scripts/activemq-snapshots-clean.sh (original)
+++ activemq/scripts/activemq-snapshots-clean.sh Tue Sep  4 07:44:45 2007
@@ -1,6 +1,6 @@
 #!/usr/local/bin/bash
 
-find /www/people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/ -type f -mtime +7 -exec rm {} \; 
-find /www/people.apache.org/repo/m2-snapshot-repository/org/apache/camel/ -type f -mtime +7 -exec rm {} \;
-find /www/people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/ -type f -mtime +7 -exec rm {} \;  
+find /www/people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/ -type f -mtime +7 -not -newer /www/people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/activemq-parent/maven-metadata.xml -exec rm {} \; 
+find /www/people.apache.org/repo/m2-snapshot-repository/org/apache/camel/ -type f -mtime +7 -not -newer /www/people.apache.org/repo/m2-snapshot-repository/org/apache/camel/camel-parent/maven-metadata.xml -exec rm {} \;
+find /www/people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/ -type f -mtime +7 -not -newer /www/people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/maven-metadata.xml -exec rm {} \;
 find /www/people.apache.org/repo/m2-snapshot-repository/incubator-activemq/ -type f -mtime +7 -exec rm {} \;