|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2020 the original author or authors.
|
|
|
|
* Copyright 2012-2022 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -65,9 +65,9 @@ class ServiceCapabilitiesReportGenerator {
|
|
|
|
private String generateHelp(String url, InitializrServiceMetadata metadata) {
|
|
|
|
private String generateHelp(String url, InitializrServiceMetadata metadata) {
|
|
|
|
String header = "Capabilities of " + url;
|
|
|
|
String header = "Capabilities of " + url;
|
|
|
|
StringBuilder report = new StringBuilder();
|
|
|
|
StringBuilder report = new StringBuilder();
|
|
|
|
report.append(repeat("=", header.length())).append(NEW_LINE);
|
|
|
|
report.append("=".repeat(header.length())).append(NEW_LINE);
|
|
|
|
report.append(header).append(NEW_LINE);
|
|
|
|
report.append(header).append(NEW_LINE);
|
|
|
|
report.append(repeat("=", header.length())).append(NEW_LINE);
|
|
|
|
report.append("=".repeat(header.length())).append(NEW_LINE);
|
|
|
|
report.append(NEW_LINE);
|
|
|
|
report.append(NEW_LINE);
|
|
|
|
reportAvailableDependencies(metadata, report);
|
|
|
|
reportAvailableDependencies(metadata, report);
|
|
|
|
report.append(NEW_LINE);
|
|
|
|
report.append(NEW_LINE);
|
|
|
@ -139,12 +139,4 @@ class ServiceCapabilitiesReportGenerator {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static String repeat(String s, int count) {
|
|
|
|
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
|
|
|
for (int i = 0; i < count; i++) {
|
|
|
|
|
|
|
|
sb.append(s);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return sb.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|