Author: olamy
Date: Thu Oct 11 19:26:17 2012
New Revision: 1397248

URL: http://svn.apache.org/viewvc?rev=1397248&view=rev
Log:
ignore issue when file is not here but continue deleting metadatas

Modified:
    
archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java

Modified: 
archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java
URL: 
http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java?rev=1397248&r1=1397247&r2=1397248&view=diff
==============================================================================
--- 
archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java
 (original)
+++ 
archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java
 Thu Oct 11 19:26:17 2012
@@ -682,8 +682,9 @@ public class DefaultRepositoriesService
 
                 if ( !targetPath.exists() )
                 {
-                    throw new ContentNotFoundException(
-                        artifact.getGroupId() + ":" + artifact.getArtifactId() 
+ ":" + artifact.getVersion() );
+                    //throw new ContentNotFoundException(
+                    //    artifact.getGroupId() + ":" + 
artifact.getArtifactId() + ":" + artifact.getVersion() );
+                    log.warn( "targetPath {} not found skip file deletion", 
targetPath );
                 }
 
                 // TODO: this should be in the storage mechanism so that it is 
all tied together


Reply via email to