Skip to content

Commit

Permalink
[JENKINS-21486] Follow-up
Browse files Browse the repository at this point in the history
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 5ebf6b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/PluginWrapper.java
Expand Up @@ -573,7 +573,7 @@ public boolean hasLicensesXml() {
obsoleteDependencies.add(dependency.getShortName() + "(" + dependency.getVersion() + " < " + d.version + ")");
}
} else {
disabledDependencies.add(d.toString());
disabledDependencies.add(d.shortName);
}

}
Expand All @@ -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. ");
}
Expand Down

0 comments on commit 5ebf6b8

Please sign in to comment.