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
This commit is contained in:
Olivier Lamy 2011-11-10 10:38:24 +00:00
parent 98bb578d21
commit bf52047b1f
1 changed files with 10 additions and 3 deletions

View File

@ -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;
}