[java-identity-provider] 03/03: IDP-1595 Report if no download location defined.
Rod Widdowson
rdw at steadingsoftware.com
Wed Sep 2 09:48:56 UTC 2020
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=51d69ac7a0f17c0c70503da22a95d51bd2c31196
commit 51d69ac7a0f17c0c70503da22a95d51bd2c31196
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Sep 2 10:48:07 2020 +0100
IDP-1595 Report if no download location defined.
https://issues.shibboleth.net/jira/browse/IDP-1595
---
.../shibboleth/idp/installer/plugin/PluginInstallerCLI.java | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/idp-installer/src/main/java/net/shibboleth/idp/installer/plugin/PluginInstallerCLI.java b/idp-installer/src/main/java/net/shibboleth/idp/installer/plugin/PluginInstallerCLI.java
index 23b01b903..1f1117aaf 100644
--- a/idp-installer/src/main/java/net/shibboleth/idp/installer/plugin/PluginInstallerCLI.java
+++ b/idp-installer/src/main/java/net/shibboleth/idp/installer/plugin/PluginInstallerCLI.java
@@ -317,11 +317,18 @@ public final class PluginInstallerCLI extends AbstractIdPHomeAwareCommandLine<Pl
final Map<PluginVersion, VersionInfo> versions = state.getAvailableVersions();
System.out.println("\tVersions ");
for (final Entry<PluginVersion, VersionInfo> entry : versions.entrySet()) {
- System.out.println(String.format("\t%s:\tMin=%s\tMax=%s\tSupport level: %s",
+ final String downLoadDetails;
+ if (state.getUpdateBaseName(entry.getKey()) == null || state.getUpdateURL(entry.getKey())==null ) {
+ downLoadDetails = " - No download available";
+ } else {
+ downLoadDetails = "";
+ }
+ System.out.println(String.format("\t%s:\tMin=%s\tMax=%s\tSupport level: %s%s",
entry.getKey(),
entry.getValue().getMinSupported(),
entry.getValue().getMaxSupported(),
- entry.getValue().getSupportLevel()));
+ entry.getValue().getSupportLevel(),
+ downLoadDetails));
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list