]> source.dussan.org Git - archiva.git/commitdiff
ignore issue when file is not here but continue deleting metadatas
authorOlivier Lamy <olamy@apache.org>
Thu, 11 Oct 2012 19:26:17 +0000 (19:26 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 11 Oct 2012 19:26:17 +0000 (19:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1397248 13f79535-47bb-0310-9956-ffa450edef68

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

index 4ae70512fd7efd15d57bf1e7550f8e958a33de17..012d1c26335c11bddef38aad542adbc76fc2beda 100644 (file)
@@ -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