[MRM-1628] Silently ignore request to delete artifacts that does not exist on disk anymore

Submitted by Fredrik Jonson.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1334124 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-05-04 19:18:59 +00:00
parent 4e19b57b3a
commit 43b13fa7cc
1 changed files with 0 additions and 10 deletions

View 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()