Removed "Jenkins" prefix from plugin display names.

Since sorting of plugins in the update manager is based on displayName
this name should not have a common prefix otherwise it's hard to find
a given plugin name.
This commit is contained in:
Ulli Hafner committed 2014-02-04 15:25:31 +01:00
1 parent 5155120d82
commit 48cb1304c5
5 files changed
+14 -5

No files matched your search

+2 -1
View File
@@ -45,6 +45,7 @@ import java.util.jar.Manifest;
import java.util.logging.Logger;
import static java.util.logging.Level.WARNING;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.LogFactory;
import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.HttpResponses;
@@ -213,7 +214,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
}
public String getDisplayName() {
return getLongName();
return StringUtils.removeStart(getLongName(), "Jenkins ");
}
public Api getApi() {