From bf52047b1f858e8837400d146744cbacd98902eb Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 10 Nov 2011 10:38:24 +0000 Subject: [PATCH] add classifier if exists in the response message git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1200257 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/web/action/DeleteArtifactAction.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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; } -- 2.39.5