}
public void deleteVersion( VersionedReference reference )
- throws ContentNotFoundException
{
String path = toMetadataPath( reference );
File projectPath = new File( getRepoRoot(), path );
{
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 );
{
FileUtils.deleteQuietly( filePath );
}
- else
- {
- throw new ContentNotFoundException( "Unable to delete non-existing project artifact: " + filePath );
- }
}
public String getId()