diff options
author | Olivier Lamy <olamy@apache.org> | 2012-05-04 19:18:59 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-05-04 19:18:59 +0000 |
commit | 43b13fa7ccfc74959ee85f29b56861e3c11555da (patch) | |
tree | 9d630ebaeeb148094a7c4fb2c0a9be998495f432 /archiva-modules/archiva-base/archiva-repository-layer | |
parent | 4e19b57b3a6d4a251affc9f83cc9cad9da594b00 (diff) | |
download | archiva-43b13fa7ccfc74959ee85f29b56861e3c11555da.tar.gz archiva-43b13fa7ccfc74959ee85f29b56861e3c11555da.zip |
[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
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-layer')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java index f9b5bb13b..aabda49cf 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java @@ -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() |