diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/DeleteArtifactAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/DeleteArtifactAction.java index 06f24b778..1117df07f 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/DeleteArtifactAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/DeleteArtifactAction.java @@ -222,11 +222,18 @@ public class DeleteArtifactAction RedbackAuthenticationThreadLocal.set( null ); } - String msg = "Artifact \'" + groupId + ":" + artifactId + ":" + version - + "\' was successfully deleted from repository \'" + repositoryId + "\'"; + StringBuilder msg = new StringBuilder( "Artifact \'" ).append( groupId ).append( ":" ).append( artifactId ); - addActionMessage( msg ); + if ( StringUtils.isNotEmpty( classifier ) ) + { + msg.append( ":" ).append( classifier ); + + + } + msg.append( ":" ).append( version ).append( "' was successfully deleted from repository '" ).append( + repositoryId ).append( "'" ); + addActionMessage( msg.toString() ); reset(); return SUCCESS; }