Skip to content
Permalink
Browse files

[JENKINS-21486] Follow-up

Display of shortName of disabled plugin is enough. Fix copy-paste error
in the message for disabled dependencies
  • Loading branch information...
Vlatombe committed Apr 6, 2016
1 parent 4515625 commit 5ebf6b8bde83543a10dc21ef0dfd74872f20421e
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/java/hudson/PluginWrapper.java
@@ -573,7 +573,7 @@ public boolean hasLicensesXml() {
obsoleteDependencies.add(dependency.getShortName() + "(" + dependency.getVersion() + " < " + d.version + ")");
}
} else {
disabledDependencies.add(d.toString());
disabledDependencies.add(d.shortName);
}

}
@@ -600,7 +600,7 @@ public boolean hasLicensesXml() {
if (!disabledDependencies.isEmpty()) {
boolean plural = disabledDependencies.size() > 1;
messageBuilder.append(plural ? "Dependencies " : "Dependency ")
.append(Util.join(missingDependencies, ", "))
.append(Util.join(disabledDependencies, ", "))
.append(" ").append(plural ? "are" : "is")
.append(" disabled. ");
}

0 comments on commit 5ebf6b8

Please sign in to comment.
You can’t perform that action at this time.