]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1628] Silently ignore request to delete artifacts that does not exist on disk...
authorOlivier Lamy <olamy@apache.org>
Fri, 4 May 2012 19:18:59 +0000 (19:18 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 4 May 2012 19:18:59 +0000 (19:18 +0000)
Submitted by Fredrik Jonson.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1334124 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java

index f9b5bb13b1b8622269153e4b4188f2ee01a97b11..aabda49cfd0c9d8d178b1e1928eeb91b1ad63b67 100644 (file)
@@ -66,7 +66,6 @@ public class ManagedDefaultRepositoryContent
     }
 
     public void deleteVersion( VersionedReference reference )
-        throws ContentNotFoundException
     {
         String path = toMetadataPath( reference );
         File projectPath = new File( getRepoRoot(), path );
@@ -76,14 +75,9 @@ public class ManagedDefaultRepositoryContent
         {
             FileUtils.deleteQuietly( projectDir );
         }
-        else
-        {
-            throw new ContentNotFoundException( "Unable to delete non-existing project directory: " + projectDir );
-        }
     }
 
     public void deleteArtifact( ArtifactReference artifactReference )
-        throws ContentNotFoundException
     {
         String path = toPath( artifactReference );
         File filePath = new File( getRepoRoot(), path );
@@ -92,10 +86,6 @@ public class ManagedDefaultRepositoryContent
         {
             FileUtils.deleteQuietly( filePath );
         }
-        else
-        {
-            throw new ContentNotFoundException( "Unable to delete non-existing project artifact: " + filePath );
-        }
     }
 
     public String getId()