mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 23:25:52 +00:00
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:
1 parent
5155120d82
commit
48cb1304c5
5 files changed
+14
-5
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user